mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add startAt to random walk scenario
This commit is contained in:
2
pkg/tsdb/testdata/scenarios.go
vendored
2
pkg/tsdb/testdata/scenarios.go
vendored
@@ -251,7 +251,7 @@ func getRandomWalk(query *tsdb.Query, tsdbQuery *tsdb.TsdbQuery) *tsdb.QueryResu
|
||||
series := newSeriesForQuery(query)
|
||||
|
||||
points := make(tsdb.TimeSeriesPoints, 0)
|
||||
walker := rand.Float64() * 100
|
||||
walker := query.Model.Get("startValue").MustFloat64(rand.Float64() * 100)
|
||||
|
||||
for i := int64(0); i < 10000 && timeWalkerMs < to; i++ {
|
||||
points = append(points, tsdb.NewTimePoint(null.FloatFrom(walker), float64(timeWalkerMs)))
|
||||
|
||||
Reference in New Issue
Block a user