diff --git a/app/vmselect/promql/rollup.go b/app/vmselect/promql/rollup.go index f6973a70f..a6c3e8ebe 100644 --- a/app/vmselect/promql/rollup.go +++ b/app/vmselect/promql/rollup.go @@ -1096,7 +1096,7 @@ func rollupRateOverSum(rfa *rollupFuncArg) float64 { if len(values) == 0 { return nan } - prevTimestamp = timestamps[1] + prevTimestamp = timestamps[0] values = values[1:] timestamps = timestamps[1:] }