diff options
author | 2015-12-21 21:22:58 +0200 | |
---|---|---|
committer | 2015-12-21 21:22:58 +0200 | |
commit | 4400ebfd85c5700ff11a3532ea0e01ec06bf4928 (patch) | |
tree | 1b446cb270dc77ef4e1dce0b28008022d64f781a /src | |
parent | 92499e6c0024f3472476aa4a03c0729609db593f (diff) | |
parent | a667765535119953ca73ba5f75c815b36648588c (diff) |
Merge
Diffstat (limited to 'src')
-rw-r--r-- | src/latency.cpp | 6 | ||||
-rw-r--r-- | src/stateless/cp/trex_stateless_port.cpp | 2 |
2 files changed, 7 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){ diff --git a/src/stateless/cp/trex_stateless_port.cpp b/src/stateless/cp/trex_stateless_port.cpp index 3a64f8c5..aa34e87b 100644 --- a/src/stateless/cp/trex_stateless_port.cpp +++ b/src/stateless/cp/trex_stateless_port.cpp @@ -72,6 +72,8 @@ TrexStatelessPort::TrexStatelessPort(uint8_t port_id, const TrexPlatformApi *api /* init the events DP DB */ m_dp_events.create(this); + + m_graph_obj = NULL; } |