HdrHistogram_c icon indicating copy to clipboard operation
HdrHistogram_c copied to clipboard

hdr_value_at_percentile says 95th percentile of empty histogram is 63

Open lukeocamden opened this issue 3 years ago • 1 comments

Steps to repro:

hdr_histogram* histogram;
hdr_init(100, 10 * 1000 * 1000, 3, &histogram);
std::cout << hdr_value_at_percentile(histogram, 95) << std::endl;

Is there a more intuitive value that could be returned here eg zero?

lukeocamden avatar Apr 14 '23 12:04 lukeocamden

I have noticed some weird behaviour with empty histograms. I'll need to check with the behaviour of the Java implementation.

mikeb01 avatar Feb 07 '24 19:02 mikeb01