Code Review
/
nfvbench.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
NFVBENCH-32 Check nan result values before integer casting
[nfvbench.git]
/
nfvbench
/
traffic_gen
/
traffic_utils.py
diff --git
a/nfvbench/traffic_gen/traffic_utils.py
b/nfvbench/traffic_gen/traffic_utils.py
index
d3def42
..
7cf44a8
100644
(file)
--- a/
nfvbench/traffic_gen/traffic_utils.py
+++ b/
nfvbench/traffic_gen/traffic_utils.py
@@
-17,6
+17,7
@@
import bitmath
from traffic_base import AbstractTrafficGenerator
+
def convert_rates(l2frame_size, rate, intf_speed):
avg_packet_size = get_average_packet_size(l2frame_size)
if 'rate_pps' in rate: