mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +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
fd7dd5064a
commit
3e0c473cc9
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]
|
||||
values = values[1:]
|
||||
for i, v := range values {
|
||||
if math.IsNaN(v) {
|
||||
continue
|
||||
if !math.IsNaN(v) {
|
||||
prevValue = rf(prevValue, v, i+1)
|
||||
}
|
||||
prevValue = rf(prevValue, v, i+1)
|
||||
values[i] = prevValue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue