From 04eae221e7c0089ae974f86e3f6fe156d4cb56ce Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 4 Sep 2016 15:25:42 +0300 Subject: DUAL mode - phase #1 --- .../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/trex_stl_stats.py') 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) -- cgit 1.2.3-korg