diff options
author | Kerim Gokarslan <kgokarsl@cisco.com> | 2017-09-21 15:30:43 -0700 |
---|---|---|
committer | Kerim Gokarslan <kgokarsl@cisco.com> | 2017-09-21 17:19:35 -0700 |
commit | 97b452affb0e99816ad503a5f79b01f38b93059a (patch) | |
tree | ace763fd2eea217a663a73ea3491cb9f97e71aef /nfvbench/traffic_gen/traffic_utils.py | |
parent | 846250f4c570798a1058dd8d3a405513c4900932 (diff) |
NFVBENCH-32 Check nan result values before integer casting
Change-Id: Ia675672b40f93d7503ebe5a355896a084e3d0cbf
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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nfvbench/traffic_gen/traffic_utils.py b/nfvbench/traffic_gen/traffic_utils.py index d3def42..7cf44a8 100644 --- 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: |