aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmichalo <bmichalo@redhat.com>2016-08-26 10:27:30 -0400
committerbmichalo <bmichalo@redhat.com>2016-08-26 10:27:30 -0400
commitb2289e1f6abab2d807eb55d9ec868039dc2384e2 (patch)
tree3a6ec2e7840b0e683323e2734d6a1164a7b31539
parentcd22516b0f625e87ef100a7937d3ba9ba8f155e7 (diff)
pkt_gen: MoonGen Incorrect RX_MBPS Calculation
Misplaced parenthesis regarding THROUGHPUT_RX_MBPS JIRA: VSPERF-381 Change-Id: Ie33cf6ca88164f0686a819715b5f9f7409072063 Signed-off-by: bmichalo <bmichalo@redhat.com>
-rw-r--r--tools/pkt_gen/moongen/moongen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pkt_gen/moongen/moongen.py b/tools/pkt_gen/moongen/moongen.py
index 790286d8..6ae52f61 100644
--- a/tools/pkt_gen/moongen/moongen.py
+++ b/tools/pkt_gen/moongen/moongen.py
@@ -508,7 +508,7 @@ class Moongen(ITrafficGenerator):
float(results_match.group(6)) * 1000000)
moongen_results[ResultsConstants.THROUGHPUT_RX_MBPS] = (
- (float(results_match.group(6)) * frame_size + 20) * 8)
+ float(results_match.group(6)) * (frame_size + 20) * 8)
moongen_results[ResultsConstants.THROUGHPUT_RX_PERCENT] = (
(100 * float(results_match.group(6)) * 1000000) / max_theoretical_fps)