Skip to content

Commit

Permalink
Merge pull request #1122 from foozlevazquez/dev
Browse files Browse the repository at this point in the history
Convert cached_datapoints from dict if needed.
  • Loading branch information
brutasse committed Feb 14, 2015
2 parents da85275 + ac306a1 commit 1df5e2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/graphite/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ def fetch(self, startTime, endTime):
log.exception("Failed CarbonLink query '%s'" % self.real_metric_path)
cached_datapoints = []

if isinstance(cached_datapoints, dict):
cached_datapoints = cached_datapoints.items()

for (timestamp, value) in cached_datapoints:
interval = timestamp - (timestamp % step)

Expand Down

0 comments on commit 1df5e2e

Please sign in to comment.