mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
app/vmselect/promql: fill gaps on graphs for range_*
and running_*
functions
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/806
This commit is contained in:
parent
764dc2499f
commit
59c26feefa
1 changed files with 2 additions and 3 deletions
|
@ -912,10 +912,9 @@ func newTransformFuncRunning(rf func(a, b float64, idx int) float64) transformFu
|
||||||
prevValue := values[0]
|
prevValue := values[0]
|
||||||
values = values[1:]
|
values = values[1:]
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
if math.IsNaN(v) {
|
if !math.IsNaN(v) {
|
||||||
continue
|
prevValue = rf(prevValue, v, i+1)
|
||||||
}
|
}
|
||||||
prevValue = rf(prevValue, v, i+1)
|
|
||||||
values[i] = prevValue
|
values[i] = prevValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue