I don't understand the code in #541
the quantizing logic adds the division remainder instead of
what i would expect, subtracting it.
I added a test that demonstrates the result I expected,
I'ld like @woodsaj to add a commit that either fixes the test and its comments,
or the logic, whichever is more appropriate,
and then we can merge this branch.
Good catch @Dieterbe. The logic for setting the startTime was copied from graphite-raintank, which was wrong. But because they were both wrong, things just worked.
I don't understand the code in #541 the quantizing logic adds the division remainder instead of what i would expect, subtracting it. I added a test that demonstrates the result I expected, I'ld like @woodsaj to add a commit that either fixes the test and its comments, or the logic, whichever is more appropriate, and then we can merge this branch.