author | Florian Forster <octo@collectd.org> | |
Mon, 13 Jul 2015 09:53:58 +0000 (11:53 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 14 Jan 2016 10:06:27 +0000 (11:06 +0100) | ||
commit | bf20109876505eddc2c741e87e96e7cb54af9efa | |
tree | 66629483065f0ce7728343119af0cf04d0e15f3e | tree | snapshot |
parent | e183a8d7e22298181bcf07529f04aed1568809fb | commit | diff |
src/utils_latency.c: Store "bin_width" as cdtime_t.
This solves the integer overflow when passing huge latency values to
latency_counter_add(). In addition to fixing the overflow the function
will now ignore values that are larger than LLONG_MAX, i.e. the longest
possible latency is 272 years. As a nice side-effect, the precission of
latency_counter_get_percentile() is improved.
Issue: #1131
This solves the integer overflow when passing huge latency values to
latency_counter_add(). In addition to fixing the overflow the function
will now ignore values that are larger than LLONG_MAX, i.e. the longest
possible latency is 272 years. As a nice side-effect, the precission of
latency_counter_get_percentile() is improved.
Issue: #1131
src/utils_latency.c | diff | blob | history |