Updated iperf and netperf tests to report the sum of the throughputs rather
than the average of the throughputs.
Signed-off-by: Bryce Boe <bboe@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2175 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/netperf2/netperf2.py b/client/tests/netperf2/netperf2.py
index 456ec9c..6ac7d0c 100755
--- a/client/tests/netperf2/netperf2.py
+++ b/client/tests/netperf2/netperf2.py
@@ -147,11 +147,11 @@
for result in outputs:
temp_vals.append(function(result))
- # Compute the average of elements returned from function which
+ # Compute the sum of elements returned from function which
# represent the string contained in keys
for j, key in enumerate(keys):
vals = [x[j] for x in temp_vals]
- keyval[key] = sum(vals) / len(vals)
+ keyval[key] = sum(vals)
self.write_iteration_keyval(attr, keyval)