diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-05-29 16:07:59 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-05-29 16:07:59 +0300 |
commit | 8face98e3a429d781e2cb5e33e758f0a59b80f87 (patch) | |
tree | e2ecf5c034f35b4232c63bd0e2bb2a2c96306083 /scripts | |
parent | 1014f7c21082d58ad75e53056b8f558b9a00d8a9 (diff) | |
parent | f2abf803461fb88d59f31398764d946f982b4647 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 4 |
1 files changed, 3 insertions, 1 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 ee4bd1f9..b5a2eb64 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 @@ -1032,8 +1032,10 @@ class CLatencyStats(CTRexStats): if zero_count != 0: output[int_pg_id]['latency']['total_min'] = 1 output[int_pg_id]['latency']['histogram'][0] = zero_count - else: + elif output[int_pg_id]['latency']['histogram']: output[int_pg_id]['latency']['total_min'] = min(output[int_pg_id]['latency']['histogram'].keys()) + else: + output[int_pg_id]['latency']['total_min'] = 0 self.latest_stats = output return True |