graphite-project/graphite-web — pull request #784 by steve-dave (2014-07-17 23:51:09+00:00)
Title: JSON[P] Render Bugfix (0.9.x)

Basically the key to this is that the range() function returns a list of numbers up to but not including series.end. This meant that if the final timestamp in a series aligned exactly with the end of a series a datapoint was dropped because it's timestamp was not generated. A symptom of this was the the constantLine function only generated one (the first) out of two points when using the JSON format (used by Grafana, etc) so no line was displayed.

I've also ensure all parameters to range() are ints (as down elsewhere throughout the code) as it seems that sometimes the values can be floats which causes an unhandled exception.

This should resolve https://github.com/graphite-project/graphite-web/issues/539