summaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_gen/traffic_utils.py
diff options
context:
space:
mode:
authorAlec Hothan <ahothan@cisco.com>2017-09-19 19:10:29 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-19 19:10:29 +0000
commit230d84f20f70ebcbafa1f8f3d32461649c8c49b1 (patch)
tree3073883ca7a8a771daeebbfef7f89dcc9f6f2753 /nfvbench/traffic_gen/traffic_utils.py
parentf0210f984f570ae4734d4d06c62363b820e885d6 (diff)
parent5bfd65ce5753b27c32afb9f84cf5b268f060cb03 (diff)
Merge "NFVBENCH-25 Send run results to fluentd"
Diffstat (limited to 'nfvbench/traffic_gen/traffic_utils.py')
-rw-r--r--nfvbench/traffic_gen/traffic_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfvbench/traffic_gen/traffic_utils.py b/nfvbench/traffic_gen/traffic_utils.py
index e5dc463..d3def42 100644
--- a/nfvbench/traffic_gen/traffic_utils.py
+++ b/nfvbench/traffic_gen/traffic_utils.py
@@ -39,9 +39,9 @@ def convert_rates(l2frame_size, rate, intf_speed):
return {
'initial_rate_type': initial_rate_type,
- 'rate_pps': pps,
+ 'rate_pps': int(pps),
'rate_percent': load,
- 'rate_bps': bps
+ 'rate_bps': int(bps)
}