diff options
author | 2015-09-29 19:47:45 +0300 | |
---|---|---|
committer | 2015-09-29 19:47:45 +0300 | |
commit | 73574943ae438985f37aae3ea52e9713c55ef62e (patch) | |
tree | 7886b90dc208eb828119d478df080a9a0acd9a4f /src/stateless | |
parent | 1f90e4ed08414c8aa423693c4ee8fa84e7675230 (diff) |
just a checkpoint on async server
Diffstat (limited to 'src/stateless')
-rw-r--r-- | src/stateless/trex_stateless_api.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/stateless/trex_stateless_api.h b/src/stateless/trex_stateless_api.h index ca093e03..fd88baf7 100644 --- a/src/stateless/trex_stateless_api.h +++ b/src/stateless/trex_stateless_api.h @@ -181,13 +181,14 @@ public: } - const TrexPortStats & get_port_stats(void) { - /* scrabble */ - m_stats.m_stats.tx_bps += 1 + rand() % 100; - m_stats.m_stats.tx_pps += 1 + rand() % 10; - m_stats.m_stats.total_tx_bytes += 1 + rand() % 10; - m_stats.m_stats.total_tx_pkts += 1 + rand() % 5; + /** + * update the values of the stats + * + * @author imarom (24-Sep-15) + */ + void update_stats(); + const TrexPortStats & get_stats() { return m_stats; } |