summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-10-30 15:01:55 -0700
committerAlec Hothan <ahothan@cisco.com>2017-10-30 22:46:19 +0000
commitcf170f046d63f61819ab6b5a2c75b078bf34be82 (patch)
treeaa5bbe27dbc06f902a5e1540f17d8fb1465054d6
parent02f70b50b4895a884c69e38b82149c7ee6a299ce (diff)
NFVBENCH-45 Fix typo on imix_avg_l2_size
Change-Id: I124ca18b717220dd7f74f14c213c3a2ca3b81c60 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com> (cherry picked from commit ac95ac97f150eef9b561b966a93b934c535164b9)
-rw-r--r--nfvbench/traffic_gen/traffic_base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nfvbench/traffic_gen/traffic_base.py b/nfvbench/traffic_gen/traffic_base.py
index 568fae2..817ecc8 100644
--- a/nfvbench/traffic_gen/traffic_base.py
+++ b/nfvbench/traffic_gen/traffic_base.py
@@ -29,11 +29,10 @@ class AbstractTrafficGenerator(object):
imix_l2_sizes = [64, 594, 1518]
imix_l3_sizes = [size - l2_header_size for size in imix_l2_sizes]
imix_ratios = [7, 4, 1]
-
imix_avg_l2_size = sum(
[1.0 * imix[0] * imix[1] for imix in zip(imix_l2_sizes, imix_ratios)]) / sum(imix_ratios)
- traffic_utils.imix_avg_l2_sizes = imix_avg_l2_size
+ traffic_utils.imix_avg_l2_size = imix_avg_l2_size
def __init__(self, config):
self.config = config