diff options
author | Hanoh Haim <hhaim@cisco.com> | 2015-12-21 21:22:58 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2015-12-21 21:22:58 +0200 |
commit | 4400ebfd85c5700ff11a3532ea0e01ec06bf4928 (patch) | |
tree | 1b446cb270dc77ef4e1dce0b28008022d64f781a /src/latency.cpp | |
parent | 92499e6c0024f3472476aa4a03c0729609db593f (diff) | |
parent | a667765535119953ca73ba5f75c815b36648588c (diff) |
Merge
Diffstat (limited to 'src/latency.cpp')
-rw-r--r-- | src/latency.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/latency.cpp b/src/latency.cpp index 02b54f75..3969c357 100644 --- a/src/latency.cpp +++ b/src/latency.cpp @@ -268,7 +268,7 @@ void CCPortLatency::dump_json(std::string & json ){ void CCPortLatency::DumpShort(FILE *fd){ - m_hist.update(); +// m_hist.update(); <- moved to CLatencyManager::update() fprintf(fd,"%8lu,%8lu,%10lu,%4lu,", m_tx_pkt_ok, m_pkt_ok, @@ -907,6 +907,10 @@ void CLatencyManager::rx_check_dump_json(std::string & json){ void CLatencyManager::update(){ m_cpu_cp_u.Update() ; + for (int i=0; i<m_max_ports; i++) { + CLatencyManagerPerPort * lp=&m_ports[i]; + lp->m_port.m_hist.update(); + } } void CLatencyManager::DumpShort(FILE *fd){ |