diff options
author | 2017-10-30 15:01:55 -0700 | |
---|---|---|
committer | 2017-10-30 22:46:19 +0000 | |
commit | cf170f046d63f61819ab6b5a2c75b078bf34be82 (patch) | |
tree | aa5bbe27dbc06f902a5e1540f17d8fb1465054d6 | |
parent | 02f70b50b4895a884c69e38b82149c7ee6a299ce (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.py | 3 |
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 |