From d944dab51f8bcdc3d551acdb1c2c5a4bfa91049b Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Sun, 29 May 2016 17:21:23 +0300 Subject: If not total_min, make it StatNotAvailable --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib') 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 -- cgit 1.2.3-korg