aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhijit Sinha <abhijit.sinha@intel.com>2018-05-15 15:46:39 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-05-15 15:46:39 +0000
commitebeb81ea222770e2f5330b680a8a13f587e023e8 (patch)
treecdc98f7e7e3088571f1abf87e346bca6c9629af6
parent29a75d1c182b6a707c36fbc48a3e4b123f390d9f (diff)
parent443b3d4ada33d464bdf59fe1ef0da4c8bf9a8607 (diff)
Merge "Fix PROX throughput result calculation"
-rw-r--r--tests/unit/network_services/traffic_profile/test_prox_binsearch.py2
-rw-r--r--yardstick/network_services/traffic_profile/prox_binsearch.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/network_services/traffic_profile/test_prox_binsearch.py b/tests/unit/network_services/traffic_profile/test_prox_binsearch.py
index 1b4189b48..28840ef98 100644
--- a/tests/unit/network_services/traffic_profile/test_prox_binsearch.py
+++ b/tests/unit/network_services/traffic_profile/test_prox_binsearch.py
@@ -68,7 +68,7 @@ class TestProxBinSearchProfile(unittest.TestCase):
# Result Samples inc theor_max
result_tuple = {"Result_Actual_throughput": 7.5e-07,
- "Result_theor_max_throughput": 0.00012340000000000002,
+ "Result_theor_max_throughput": 1.234e-10,
"Result_pktSize": 200}
profile.queue.put.assert_called_with(result_tuple)
diff --git a/yardstick/network_services/traffic_profile/prox_binsearch.py b/yardstick/network_services/traffic_profile/prox_binsearch.py
index c3277fb12..7a84f1365 100644
--- a/yardstick/network_services/traffic_profile/prox_binsearch.py
+++ b/yardstick/network_services/traffic_profile/prox_binsearch.py
@@ -116,7 +116,6 @@ class ProxBinSearchProfile(ProxProfile):
self.current_lower = test_value
successful_pkt_loss = result.pkt_loss
samples = result.get_samples(pkt_size, successful_pkt_loss, port_samples)
- samples["TxThroughput"] = samples["TxThroughput"] * 1000 * 1000
# store results with success tag in influxdb
success_samples = {'Success_' + key: value for key, value in samples.items()}