From e72b12eac4cd153d783b33fa7708f413aeaf8e70 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Tue, 17 May 2016 14:36:52 +0300 Subject: moved jitter into latency in python --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 173832a1..104befcd 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 @@ -884,7 +884,7 @@ class CLatencyStats(CTRexStats): current_pg = snapshot.get(pg_id) int_pg_id = int(pg_id) output[int_pg_id] = {} - for field in ['err_cntrs', 'jitter', 'latency']: + for field in ['err_cntrs', 'latency']: output[int_pg_id][field] = current_pg[field] self.latest_stats = output @@ -922,7 +922,7 @@ class CLatencyStats(CTRexStats): for i in range(1, latency_window_size): val = '%s usec' % int(history[-i - 1][pg_id]['latency']['last_max']) if len(history) > i else '' formatted_stats['Last-%s' % i].append(val) - formatted_stats['Jitter'].append('%g usec' % round(self.get([pg_id, 'jitter']), 1)) + formatted_stats['Jitter'].append('%g usec' % round(self.get([pg_id, 'latency', 'jitter']), 1)) #formatted_stats['Dropped'].append(format_num(self.get([pg_id, 'err_cntrs', 'dropped'], format = True, suffix = "pkts")) #compact = False, -- cgit 1.2.3-korg