minor fix
authorimarom <[email protected]>
Thu, 10 Mar 2016 09:53:58 +0000 (11:53 +0200)
committerimarom <[email protected]>
Thu, 10 Mar 2016 15:16:38 +0000 (17:16 +0200)
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py

index cf39444..1b57dd2 100644 (file)
@@ -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)] = {}