summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-10-30 15:01:55 -0700
committerKerim Gokarslan <kgokarsl@cisco.com>2017-10-30 15:01:55 -0700
commitac95ac97f150eef9b561b966a93b934c535164b9 (patch)
tree6fc6bc074ca6875c46868af3394dd12bb024ff0a
parent58a0c0a0ba84c730678d648333824c84876f7fe1 (diff)
NFVBENCH-45 Fix typo on imix_avg_l2_size
Change-Id: I124ca18b717220dd7f74f14c213c3a2ca3b81c60 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
-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