Files
scylladb/utils
Raphael S. Carvalho affa1d9b04 utils/estimated_histogram.hh: fix division-by-zero in mean()
if mean() is called when there are no elements in the histogram,
a runtime error will happen due to division-by-zero.
approx_exponential_histogram::mean() handles it but for some
reason we forgot to do the same for estimated_histogram.

this problem was found when adding an unit test which calls
mean() in an empty histogram.

Fixes #9531.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
Message-Id: <20211027142813.56969-1-raphaelsc@scylladb.com>
2021-10-28 08:58:25 +03:00
..
2021-07-02 19:02:14 +02:00
2021-10-05 12:57:54 +02:00
2021-07-02 19:02:13 +02:00
2021-08-01 19:34:13 +03:00
2021-07-02 10:25:58 +02:00
2021-10-05 12:57:54 +02:00
2021-06-16 17:47:10 +03:00