From 9a1356bc05d663555b9b62971aff6219e17a767c Mon Sep 17 00:00:00 2001
From: imarom <imarom@cisco.com>
Date: Tue, 21 Jun 2016 09:54:04 +0300
Subject: FLOW_STATS: extract start_stream from the compiler to start_traffic

---
 .../automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py  | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils')

diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py
index 7e0bf9e4..26e64dae 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py
@@ -61,6 +61,9 @@ def format_time (t_sec):
     if t_sec < 0:
         return "infinite"
 
+    if t_sec == 0:
+        return "zero"
+
     if t_sec < 1:
         # low numbers
         for unit in ['ms', 'usec', 'ns']:
-- 
cgit