From 0c001477c23ed81909380bfbbfc2a1b58c328f05 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 5 Aug 2011 11:09:46 -0700 Subject: [PATCH] Fix random stats generation for debugging. Change-Id: I53f0e9ea9b15fbf7b99886ea8604eda8d3958d8d --- core/java/android/net/NetworkStatsHistory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/net/NetworkStatsHistory.java b/core/java/android/net/NetworkStatsHistory.java index c917af919e..4ba44cac29 100644 --- a/core/java/android/net/NetworkStatsHistory.java +++ b/core/java/android/net/NetworkStatsHistory.java @@ -424,8 +424,8 @@ public class NetworkStatsHistory implements Parcelable { final NetworkStats.Entry entry = new NetworkStats.Entry( IFACE_ALL, UID_ALL, TAG_NONE, 0L, 0L, 0L, 0L, 0L); final Random r = new Random(); - while (rxBytes > 1024 && rxPackets > 128 && txBytes > 1024 && txPackets > 128 - && operations > 32) { + while (rxBytes > 1024 || rxPackets > 128 || txBytes > 1024 || txPackets > 128 + || operations > 32) { final long curStart = randomLong(r, start, end); final long curEnd = randomLong(r, curStart, end);