mikejihbe/metrics

Histogram mean becomes NaN as sum becomes too large

Open

#13 opened on May 24, 2012

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (575 stars) (58 forks)batch import
bughelp wanted

Description

I have one metric based on a Histogram with about 90000 entries. The sum becomes huge... and the mean becomes NaN. Actually it becomes a strange number followed by NaNNaNNaN. e.g..

653238.5-217636.16666666666NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...

Contributor guide