diff options
author | Joshua Schwarz <joshuaschwarz@google.com> | 2015-04-27 18:35:50 -0700 |
---|---|---|
committer | Joshua Schwarz <joshuaschwarz@google.com> | 2015-04-27 18:37:34 -0700 |
commit | 4547dac01f3136393cc708bb49ff546413a45d6c (patch) | |
tree | 99bc1c4b8e3b3e1f3c35b3955ee33465f87d2b79 /core/tests | |
parent | 991c8c53aff32f3d605f6715b3fa78a86990f7ff (diff) | |
download | frameworks_base-4547dac01f3136393cc708bb49ff546413a45d6c.zip frameworks_base-4547dac01f3136393cc708bb49ff546413a45d6c.tar.gz frameworks_base-4547dac01f3136393cc708bb49ff546413a45d6c.tar.bz2 |
Fix one-off error in reporting.
Change-Id: I5315e3d13b42285169e6c92cfcf9cf2ae9667018
Diffstat (limited to 'core/tests')
-rw-r--r-- | core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java b/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java index e04c214..4b82c3d 100644 --- a/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java +++ b/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java @@ -184,10 +184,10 @@ public class WifiStressTest extends ConnectivityManagerTestBase { result.putInt("ap-discovered", ssidAppearInScanResultsCount); getInstrumentation().sendStatus(Activity.RESULT_FIRST_USER, result); if (i == mScanIterations + 1) { - writeOutput(String.format("iteration %d out of %d", i, mScanIterations)); + writeOutput(String.format("iteration %d out of %d", i - 1, mScanIterations)); writeOutput(String.format("average scanning time is %d", scanTimeSum / (i - 1))); writeOutput(String.format("ssid appear %d out of %d scan iterations", - ssidAppearInScanResultsCount, i)); + ssidAppearInScanResultsCount, i - 1)); } } @@ -289,7 +289,7 @@ public class WifiStressTest extends ConnectivityManagerTestBase { getInstrumentation().sendStatus(Activity.RESULT_FIRST_USER, result); if (i == mReconnectIterations + 1) { writeOutput(String.format("iteration %d out of %d", - i, mReconnectIterations)); + i - 1, mReconnectIterations)); } } } |