From 73574943ae438985f37aae3ea52e9713c55ef62e Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 29 Sep 2015 19:47:45 +0300 Subject: just a checkpoint on async server --- src/stateless/trex_stateless_api.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/stateless') 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; } -- cgit