diff options
author | imarom <imarom@cisco.com> | 2016-09-04 15:25:42 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-09-07 14:02:55 +0300 |
commit | 04eae221e7c0089ae974f86e3f6fe156d4cb56ce (patch) | |
tree | 53b378e86f8173a8cc1f4bf2107ce6f797a91760 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | |
parent | 873e398fe2a52655b4d683acbcd05ef726cd97fa (diff) |
DUAL mode - phase #1
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.py | 2 |
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 afb01791..4586f647 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 @@ -1008,7 +1008,7 @@ class CPortStats(CTRexStats): bps_L1 = calc_bps_L1(bps, pps) bps_rx_L1 = calc_bps_L1(rx_bps, rx_pps) snapshot['m_total_tx_bps_L1'] = bps_L1 - snapshot['m_percentage'] = (bps_L1 / self._port_obj.get_speed_bps()) * 100 + snapshot['m_percentage'] = (bps_L1 / self._port_obj.get_speed_bps()) * 100.0 # TX line util not smoothed diff_tx_pkts = snapshot.get('opackets', 0) - self.latest_stats.get('opackets', 0) |