From 25aa665b7e5a5e8747735aaaa5a00dba11b21067 Mon Sep 17 00:00:00 2001 From: imarom Date: Mon, 15 Aug 2016 15:33:51 +0300 Subject: TUI screen buffer --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py') 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 b321c00b..5e4bdfda 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 @@ -442,10 +442,6 @@ class CTRexInfoGenerator(object): for i in range(min(14, len(cpu_stats))): history = cpu_stats[i]["history"] ports = cpu_stats[i]["ports"] - if not len(ports) == 2: - sys.__stdout__.write(str(util_stats["cpu"])) - exit(-1) - avg = int(round(sum(history[:avg_len]) / avg_len)) # decode active ports for core -- cgit 1.2.3-korg