square / cubism

Cubism.js: A JavaScript library for time series visualization.

Home Page:https://square.github.com/cubism/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When context.step() not divisible by 1 minute, graphite interprets as sec

shawnlauzon opened this issue · comments

The context.step() method takes a value which is supposed to be interpreted as a value in milliseconds. However, if it is not divisible by 6e4 (aka 1 minute), a bug in the graphite.metric function causes the value to be interpreted as a value in seconds, which of course is a problem with a value like 30 seconds (i.e. 3e4 is interpreted as ~8 hours).

I'll be sending a pull request shortly for this one.

Duplicate of issue #20