diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-05-05 11:52:11 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-05-18 19:20:22 +0300 |
commit | 89d643b96d9a86345ef1de8e80c801d1863002e8 (patch) | |
tree | c777a0303eda44c4dd016ffc3c5dbe7050453e10 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | |
parent | a53f6be0617721b535086298095ad49057a7be69 (diff) |
Regression tests working. Still missing python API to parse latency json
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 eace5cf2..e30da00e 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 @@ -942,7 +942,7 @@ class CRxStats(CTRexStats): def calculate_bw_for_pg (self, pg_current, pg_prev = None, diff_sec = 0.0): # no previous values - if (pg_prev == None) or not (diff_sec > 0): + if (not pg_prev) or not (diff_sec > 0): pg_current['tx_pps'] = {} pg_current['tx_bps'] = {} pg_current['tx_bps_L1'] = {} |