diff options
author | imarom <imarom@cisco.com> | 2016-01-13 04:20:33 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-01-13 04:28:34 -0500 |
commit | 862ec9b81ef22c860d4fb9fa45f0531f1c238bcc (patch) | |
tree | ba7916f8159f3da3f7e8016f72a0a781d290fa31 /scripts/automation/trex_control_plane/common | |
parent | fdc012345f5ab9dc40d5a571855a7d2010d88475 (diff) |
TUI now writes to a string buffer and then to screen
(should be faster, like double buffering and switch)
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/trex_stats.py | 8 |
1 files changed, 4 insertions, 4 deletions
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"), |