mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01: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
fd7dd5064a
commit
3e0c473cc9
@ -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 New Issue
Block a user