summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-05-29 17:21:23 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-05-29 17:21:23 +0300
commitd944dab51f8bcdc3d551acdb1c2c5a4bfa91049b (patch)
treea756b19f4d427b48680d4135c3e52a10f831043b /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
parent8face98e3a429d781e2cb5e33e758f0a59b80f87 (diff)
If not total_min, make it StatNotAvailable
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py2
1 files changed, 1 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 b5a2eb64..0ebea607 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
@@ -1035,7 +1035,7 @@ class CLatencyStats(CTRexStats):
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
+ output[int_pg_id]['latency']['total_min'] = StatNotAvailable('total_min')
self.latest_stats = output
return True