From 862ec9b81ef22c860d4fb9fa45f0531f1c238bcc Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 13 Jan 2016 04:20:33 -0500 Subject: TUI now writes to a string buffer and then to screen (should be faster, like double buffering and switch) --- scripts/automation/trex_control_plane/common/trex_stats.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/automation/trex_control_plane/common') diff --git a/scripts/automation/trex_control_plane/common/trex_stats.py b/scripts/automation/trex_control_plane/common/trex_stats.py index e88a1148..a6add4ac 100755 --- a/scripts/automation/trex_control_plane/common/trex_stats.py +++ b/scripts/automation/trex_control_plane/common/trex_stats.py @@ -116,11 +116,11 @@ class CTRexInfoGenerator(object): ("state", []), ("--", []), ("opackets", []), - ("obytes", []), ("ipackets", []), + ("obytes", []), ("ibytes", []), - ("ierrors", []), ("oerrors", []), + ("ierrors", []), ("tx-bytes", []), ("rx-bytes", []), ("tx-pkts", []), @@ -478,11 +478,11 @@ class CPortStats(CTRexStats): "state": self._port_obj.get_port_state_name() if self._port_obj else "", "--": " ", "opackets" : self.get_rel("opackets"), - "obytes" : self.get_rel("obytes"), "ipackets" : self.get_rel("ipackets"), + "obytes" : self.get_rel("obytes"), "ibytes" : self.get_rel("ibytes"), - "ierrors" : self.get_rel("ierrors"), "oerrors" : self.get_rel("oerrors"), + "ierrors" : self.get_rel("ierrors"), "tx-bytes": self.get_rel("obytes", format = True, suffix = "B"), "rx-bytes": self.get_rel("ibytes", format = True, suffix = "B"), -- cgit 1.2.3-korg