app/vmselect/prometheus: code cleanup after 3ba507000c

This commit is contained in:
Aliaksandr Valialkin 2020-09-23 13:04:17 +03:00
parent 3ba507000c
commit 27500d7d4c

View file

@ -718,8 +718,7 @@ func QueryHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) e
} }
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
} }