aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-10-03 10:37:06 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-03 10:37:06 +0000
commit469eab4040b2b38b580ca99c02c2d69bbdb0219c (patch)
treec8a622db7c4d4e89fff0f4d5b828428618913b5e /yardstick
parentb3f66cbe27bc9931e979eee83bcae2253846c5dd (diff)
parent2f4418798a3cf245f863a617410403f226062ac8 (diff)
Merge "Fix influxdb "field type conflict" error"
Diffstat (limited to 'yardstick')
-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)