boundary/folsom — pull request #23 by paulperegud (2012-05-28 12:55:12+00:00)
Title: Bug/fix sample uniform

Following test:

N = 10000,
folsom_metrics:new_histogram(huge),
[ folsom_metrics:notify(huge, X) || X <- lists:seq(1, N) ],
L = folsom_metrics:get_histogram(huge),
Result = proplists:get_value(median, L).

produced result is very close to max value of the test. This is true for N > 1028.

This patch adds test and fixes the error.