mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect: substitute inf values at smooth_exponential with the previous values
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/757
This commit is contained in:
parent
6c80ae0da8
commit
2114179e19
1 changed files with 5 additions and 1 deletions
|
@ -1043,7 +1043,11 @@ func transformSmoothExponential(tfa *transformFuncArg) ([]*timeseries, error) {
|
||||||
values = values[1:]
|
values = values[1:]
|
||||||
sfsX := sfs[len(ts.Values)-len(values):]
|
sfsX := sfs[len(ts.Values)-len(values):]
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
if math.IsNaN(v) || math.IsInf(v, 0) {
|
if math.IsNaN(v) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if math.IsInf(v, 0) {
|
||||||
|
values[i] = avg
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
sf := sfsX[i]
|
sf := sfsX[i]
|
||||||
|
|
Loading…
Reference in a new issue