summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_script/posca_factor_tx_pkt_size.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/posca/testcase_script/posca_factor_tx_pkt_size.py')
-rw-r--r--testsuites/posca/testcase_script/posca_factor_tx_pkt_size.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/posca/testcase_script/posca_factor_tx_pkt_size.py b/testsuites/posca/testcase_script/posca_factor_tx_pkt_size.py
index 47cc5e75..39dba135 100644
--- a/testsuites/posca/testcase_script/posca_factor_tx_pkt_size.py
+++ b/testsuites/posca/testcase_script/posca_factor_tx_pkt_size.py
@@ -112,10 +112,10 @@ def posca_run(con_dic):
posca_output_result(time_new, test_rx_pkt_s_e,
test_rx_cache_s_e, test_tx_cache_s_e,
bandwidth, latency, cpu_load)
- if (abs(bandwidth-con_dic['test_throughput'])/con_dic['test_\
+ if (abs(bandwidth - con_dic['test_throughput']) / con_dic['test_\
throughput'] > 0.05) and (latency < con_dic['test_\
latency']) and (cpu_load < con_dic['test_cpu_load']):
- if (abs(bandwidth_tmp-bandwidth)/bandwidth < 0.05):
+ if (abs(bandwidth_tmp - bandwidth) / bandwidth < 0.05):
print("%s,%s,%s,%s,%s,%s") % (test_rx_pkt_s_e,
test_rx_cache_s_e,
test_tx_cache_s_e,