aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/TrafficGenerator.py
diff options
context:
space:
mode:
authorMiroslav Miklus <mmiklus@cisco.com>2016-09-20 16:43:19 +0200
committerPeter Mikus <pmikus@cisco.com>2016-09-24 02:36:24 +0000
commit030f0dff4adbb5da9be2a18cbafec9b077a6723f (patch)
tree79294b062c3aafb28d2c80e9e601c718992bd4aa /resources/libraries/python/TrafficGenerator.py
parent5890588ad2d15c82ca49e0fcf6b2944c71c48501 (diff)
CSIT-412 replace latency (N/A) string by number -1
Change-Id: Id6373d3bbfcc42e315976b59aa86c6cadee411f1 Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
Diffstat (limited to 'resources/libraries/python/TrafficGenerator.py')
-rw-r--r--resources/libraries/python/TrafficGenerator.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index 2a94912860..c28e8ecd10 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -485,17 +485,8 @@ class TrafficGenerator(object):
self._loss = self._result.split(', ')[3].split('=')[1]
self._latency = []
- lat_int_list = []
- #round latency numbers
- lat_str = self._result.split(', ')[4].split('=')[1]
- for lat in lat_str.split("/"):
- lat_int_list.append(int(float(lat)))
- self._latency.append("/".join(str(tmp) for tmp in lat_int_list))
- lat_int_list = []
- lat_str = self._result.split(', ')[5].split('=')[1]
- for lat in lat_str.split("/"):
- lat_int_list.append(int(float(lat)))
- self._latency.append("/".join(str(tmp) for tmp in lat_int_list))
+ self._latency.append(self._result.split(', ')[4].split('=')[1])
+ self._latency.append(self._result.split(', ')[5].split('=')[1])
def stop_traffic_on_tg(self):
"""Stop all traffic on TG