boundary/folsom — pull request #13 by bilal (2012-02-09 03:18:39+00:00)
Title: Bin calculation for histogram metric fixed

Following steps can be followed to reproduce the error:

`folsom_sup:start_link().`
`Fun = fun() -> timer:sleep(5) end.`
`folsom_metrics:new_histogram('hist').`
`[folsom_metrics:histogram_timed_update('hist', Fun) || Count <- lists:seq(1, 7)].`

We now have a histogram metric with 7 values and
`folsom_metrics:get_histogram_statistics('hist').` will result in error, because the bins computed are incorrect.

The source of the problem is that the bins are computed as deltas (from Min) and not delta + Min.