Skip to content

Commit

Permalink
Merge pull request #2252 from DanCech/hitcount
Browse files Browse the repository at this point in the history
fix hitcount bucket calculation
  • Loading branch information
DanCech committed Mar 6, 2018
2 parents 8ad9ad4 + 17e115b commit 1de9f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/graphite/render/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4856,7 +4856,7 @@ def hitcount(requestContext, seriesList, intervalString, alignToInterval = False

for series in seriesList:
step = int(series.step)
bucket_count = int(math.ceil(float(series.end - series.start) // interval))
bucket_count = int(math.ceil(float(series.end - series.start) / interval))
buckets = [[] for _ in range(bucket_count)]
newStart = int(series.end - bucket_count * interval)

Expand Down

0 comments on commit 1de9f70

Please sign in to comment.