From 3eb2d1338ff801bf307996926394e8d043ced98e Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Wed, 18 May 2016 19:12:14 +0300 Subject: tui fixes --- scripts/automation/trex_control_plane/stl/console/trex_tui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/stl/console') diff --git a/scripts/automation/trex_control_plane/stl/console/trex_tui.py b/scripts/automation/trex_control_plane/stl/console/trex_tui.py index 0c69f029..95dc654b 100644 --- a/scripts/automation/trex_control_plane/stl/console/trex_tui.py +++ b/scripts/automation/trex_control_plane/stl/console/trex_tui.py @@ -216,7 +216,11 @@ class TrexTUILatencyStats(TrexTUIPanel): stats = self.stateless_client._get_formatted_stats(port_id_list = None, stats_mask = trex_stl_stats.LS_COMPAT) # print stats to screen for stat_type, stat_data in stats.items(): - text_tables.print_table_with_header(stat_data.text_table, stat_type) + if stat_type == 'latency_statistics': + untouched_header = ' (usec)' + else: + untouched_header = '' + text_tables.print_table_with_header(stat_data.text_table, stat_type, untouched_header = untouched_header) def get_key_actions (self): return self.key_actions -- cgit 1.2.3-korg