aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_gen/traffic_utils.py
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-09-13 20:26:01 -0700
committerahothan <ahothan@cisco.com>2017-10-20 00:37:13 -0700
commitf6a699e63dae2bb5779bd757dc62217193139ad9 (patch)
tree3073883ca7a8a771daeebbfef7f89dcc9f6f2753 /nfvbench/traffic_gen/traffic_utils.py
parentd6d77669fcb13c779d869929a95ec9e9474b3fcf (diff)
NFVBENCH-25 Send run results to fluentd
Change-Id: I671a9297b90784bc30eee48ea9244a9c63a24e85 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
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)
}