Skip to content

Commit

Permalink
Revert "Use new offset selectParam"
Browse files Browse the repository at this point in the history
This reverts commit 1c03ba5.
  • Loading branch information
jacksontj committed Jun 6, 2018
1 parent 1c03ba5 commit 0e309e3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions proxyquerier/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ func (h *ProxyQuerier) Select(selectParams *storage.SelectParams, matchers ...*l
}).Debug("Select")
}()

end := h.End
if selectParams.Offset > 0 {
end = end.Add(time.Duration(-selectParams.Offset) * time.Millisecond)
}

result, err := h.ServerGroups.GetValue(h.Ctx, h.Start, end, matchers)
result, err := h.ServerGroups.GetValue(h.Ctx, h.Start, h.End, matchers)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0e309e3

Please sign in to comment.