diff options
author | 2016-05-20 16:06:34 +0300 | |
---|---|---|
committer | 2016-05-20 16:06:34 +0300 | |
commit | 57185f8bec5e02b6e30513da412c53892d2b6281 (patch) | |
tree | a5f37c696e6596b95210eefd26073a6616ed9ed1 | |
parent | d351e5c86e0639c6440e3d1711858875719c545f (diff) |
TUI: add tx and rx packets at latency panel
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py index 4ead255d..f9db22a1 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py @@ -307,8 +307,8 @@ class CTRexInfoGenerator(object): # for TUI - maximum 5 pg_ids = list(filter(is_intable, lat_stats.latest_stats.keys()))[:5] stream_count = len(pg_ids) - lstats_data = OrderedDict([#('TX pkts', []), - #('RX pkts', []), + lstats_data = OrderedDict([('TX pkts', []), + ('RX pkts', []), ('Max latency', []), ('Avg latency', []), ('-- Window --', [''] * stream_count), @@ -324,8 +324,8 @@ class CTRexInfoGenerator(object): history = [x for x in lat_stats.history] flow_stats = self._rx_stats_ref.get_stats() for pg_id in pg_ids: - #lstats_data['TX pkts'].append(flow_stats[pg_id]['tx_pkts']['total'] if pg_id in flow_stats else '') - #lstats_data['RX pkts'].append(flow_stats[pg_id]['rx_pkts']['total'] if pg_id in flow_stats else '') + lstats_data['TX pkts'].append(flow_stats[pg_id]['tx_pkts']['total'] if pg_id in flow_stats else '') + lstats_data['RX pkts'].append(flow_stats[pg_id]['rx_pkts']['total'] if pg_id in flow_stats else '') lstats_data['Avg latency'].append(try_int(lat_stats.get([pg_id, 'latency', 'average']))) lstats_data['Max latency'].append(try_int(lat_stats.get([pg_id, 'latency', 'total_max']))) lstats_data['Last (max)'].append(try_int(lat_stats.get([pg_id, 'latency', 'last_max']))) |