diff options
author | 2016-05-17 14:36:52 +0300 | |
---|---|---|
committer | 2016-05-18 19:23:49 +0300 | |
commit | e72b12eac4cd153d783b33fa7708f413aeaf8e70 (patch) | |
tree | d2be326573effc53b01a29032e4b6b98ad109d24 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | d9cc63306748f0ef954667753441ebc3367708e0 (diff) |
moved jitter into latency in python
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 4 |
1 files 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, |