aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhijit Sinha <abhijit.sinha@intel.com>2018-10-04 16:16:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-04 16:16:49 +0000
commitc4fb671dee8e8fd7eebfca0e380dfc866bc0a286 (patch)
treec8a622db7c4d4e89fff0f4d5b828428618913b5e
parent10a3c607db2a931efa140c50813ac4b059be304b (diff)
parent7d5f15e9c93c12912cc9aa92279926a77d25ead7 (diff)
Merge "Fix influxdb "field type conflict" error" into stable/gambia
-rw-r--r--yardstick/network_services/traffic_profile/prox_binsearch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yardstick/network_services/traffic_profile/prox_binsearch.py b/yardstick/network_services/traffic_profile/prox_binsearch.py
index 5b3c9756e..f924cf419 100644
--- a/yardstick/network_services/traffic_profile/prox_binsearch.py
+++ b/yardstick/network_services/traffic_profile/prox_binsearch.py
@@ -96,7 +96,7 @@ class ProxBinSearchProfile(ProxProfile):
# success, the binary search will complete on an integer multiple
# of the precision, rather than on a fraction of it.
- theor_max_thruput = 0
+ theor_max_thruput = 0.0
result_samples = {}
@@ -198,9 +198,9 @@ class ProxBinSearchProfile(ProxProfile):
LOG.info(
">>>##>> Result Reached PktSize %s Theor_Max_Thruput %s Actual_throughput %s",
- pkt_size, theor_max_thruput, result_samples.get("RxThroughput", 0))
+ pkt_size, theor_max_thruput, result_samples.get("RxThroughput", 0.0))
result_samples["Status"] = STATUS_RESULT
result_samples["Next_Step"] = ""
- result_samples["Actual_throughput"] = result_samples.get("RxThroughput", 0)
+ result_samples["Actual_throughput"] = result_samples.get("RxThroughput", 0.0)
result_samples["theor_max_throughput"] = theor_max_thruput
self.queue.put(result_samples)