summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-05-18 15:08:08 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-05-18 19:23:50 +0300
commit52bc62a3ee546deceb4ace152d2a38434ee3ef84 (patch)
tree4ff0dcf93f411dafeec13deeab96060a22cde76e /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
parent09a8c6b6296941e0d6d2504d473fa394735eee1a (diff)
amplifying a port's bandwidth does not affect latency streams
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 104befcd..e1100b17 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
@@ -31,7 +31,7 @@ LS_COMPAT = [GLOBAL_STATS, LATENCY_STATS] # latency stats
ExportableStats = namedtuple('ExportableStats', ['raw_data', 'text_table'])
def round_float (f):
- return float("%.2f" % f)
+ return float("%.2f" % f) if type(f) is float else f
# deep mrege of dicts dst = src + dst
def deep_merge_dicts (dst, src):