From 99606230a24a02c9d50af9751a60ddf067ea6d21 Mon Sep 17 00:00:00 2001 From: Pawel Kalemba Date: Thu, 25 May 2017 12:27:56 +0000 Subject: [PATCH] fix(hitcount): Fix series to make hitcount function working As in https://github.com/raintank/graphite-metrictank/commit/480160558b569ee973559c11c1c35c850cb117e5 --- api/models/series.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/series.go b/api/models/series.go index 473049dcf5..d915905423 100644 --- a/api/models/series.go +++ b/api/models/series.go @@ -81,7 +81,7 @@ func (series SeriesByTarget) Pickle(buf []byte) ([]byte, error) { } if len(datapoints) > 0 { data[i].Start = s.Datapoints[0].Ts - data[i].End = s.Datapoints[len(s.Datapoints)-1].Ts + data[i].End = s.Datapoints[len(s.Datapoints)-1].Ts + s.Interval } else { data[i].Start = s.QueryFrom data[i].End = s.QueryTo