mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +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
bdaa9a91f3
commit
9fbb84d5c2
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