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>
---
test_modules/Iperf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.8.1.4
Show replies by date