diff --git a/app/vmselect/promql/rollup.go b/app/vmselect/promql/rollup.go index 27d390df8..d6351e523 100644 --- a/app/vmselect/promql/rollup.go +++ b/app/vmselect/promql/rollup.go @@ -1707,7 +1707,7 @@ func rollupIntegrate(rfa *rollupFuncArg) float64 { prevTimestamp = timestamp prevValue = v } - dt := float64(rfa.currTimestamp - prevTimestamp) / 1e3 + dt := float64(rfa.currTimestamp-prevTimestamp) / 1e3 sum += prevValue * dt return sum }