summaryrefslogtreecommitdiffstats
path: root/src/time_histogram.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-06-08 11:29:56 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-06-08 11:30:18 +0300
commitb9b4b145d80c31208f7381a406cdada050c6a849 (patch)
tree79ddb8f100d0a17dff199e2a0cef53189e1630ed /src/time_histogram.cpp
parentcacad4a8dbafca95b875f1eb619c229d4a7d604d (diff)
Fix for latency last period max
Diffstat (limited to 'src/time_histogram.cpp')
-rwxr-xr-xsrc/time_histogram.cpp2
1 files changed, 1 insertions, 1 deletions
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