From 38847508e56f7733f8ac8913389526f6331059c6 Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 10 Mar 2016 11:53:58 +0200 Subject: minor fix --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib') 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 cf394445..1b57dd20 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 @@ -919,9 +919,7 @@ class CRxStats(CTRexStats): for pg_id, value in self.latest_stats.iteritems(): # skip non ints - try: - int(pg_id) - except ValueError: + if not self.is_intable(pg_id): continue stats[int(pg_id)] = {} -- cgit 1.2.3-korg