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 (58 forks)batch import
bughelp wanted

Repository metrics

Stars
 (575 stars)
PR merge metrics
 (No merged PRs in 30d)

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