diff --git a/expr/consolidations/consolidations.go b/expr/consolidations/consolidations.go index 908e3afb9..1b765cf63 100644 --- a/expr/consolidations/consolidations.go +++ b/expr/consolidations/consolidations.go @@ -164,9 +164,8 @@ func SummarizeValues(f string, values []float64, XFilesFactor float32) float64 { } } if total == 0 { - return math.NaN() + rv /= float64(total) } - rv /= float64(total) case "max": rv = math.Inf(-1) for _, av := range values {