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 {
for i := range result {
rs := &result[i]
timestamps := rs.Timestamps
timestamps := result[i].Timestamps
for j := range timestamps {
timestamps[j] += queryOffset
}