commit 88aa28389fcb2d7f3d816118784d648ca3351a5e
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Fri Jun 27 11:49:07 2014 +0200
Iperf: Fix typo in rate limit evaluation
There's a typo in rate evaluation. The rate_units should be used instead
of rate_val for the comparison.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
test_modules/Iperf.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/test_modules/Iperf.py b/test_modules/Iperf.py
index 2982cff..74fa9b6 100644
--- a/test_modules/Iperf.py
+++ b/test_modules/Iperf.py
@@ -56,7 +56,7 @@ class Iperf(TestGeneric):
rate_val *= 1000
elif rate_units == 'M':
rate_val *= 1000*1000
- elif rate_val == 'G':
+ elif rate_units == 'G':
rate_val *= 1000*1000*1000
# divide by k or M or G if present
Show replies by thread