From b9b4b145d80c31208f7381a406cdada050c6a849 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Wed, 8 Jun 2016 11:29:56 +0300 Subject: Fix for latency last period max --- src/time_histogram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/time_histogram.cpp b/src/time_histogram.cpp index fefa59d6..b36fe164 100755 --- a/src/time_histogram.cpp +++ b/src/time_histogram.cpp @@ -60,13 +60,13 @@ bool CTimeHistogram::Add(dsec_t dt) { period_elem.inc_cnt(); period_elem.update_sum(dt); + period_elem.update_max(dt); // values smaller then certain threshold do not get into the histogram if (dt < m_min_delta) { return false; } period_elem.inc_high_cnt(); - period_elem.update_max(dt); uint32_t d_10usec = (uint32_t)(dt*100000.0); // 1 10-19 usec -- cgit