diff options
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, 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 |