app/vmselect/prometheus: code cleanup after 3ba507000c

This commit is contained in:
Aliaksandr Valialkin 2020-09-23 13:04:17 +03:00
parent 1fce79518a
commit 8627365b48

View File

@ -801,8 +801,7 @@ func QueryHandler(startTime time.Time, at *auth.Token, w http.ResponseWriter, r
} }
if queryOffset > 0 { if queryOffset > 0 {
for i := range result { for i := range result {
rs := &result[i] timestamps := result[i].Timestamps
timestamps := rs.Timestamps
for j := range timestamps { for j := range timestamps {
timestamps[j] += queryOffset timestamps[j] += queryOffset
} }