Make operation counts monotonically increase.

Bug: 5585704
Change-Id: I5247a68acdb209a4ef0f5aac18944595c295e6ca
This commit is contained in:
Jeff Sharkey
2011-11-08 17:35:28 -08:00
parent cd5559a856
commit e2de8f08d4
2 changed files with 12 additions and 2 deletions

View File

@@ -971,8 +971,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
}
mLastPollUidSnapshot = uidSnapshot;
mLastPollOperationsSnapshot = mOperations;
mOperations = new NetworkStats(0L, 10);
mLastPollOperationsSnapshot = mOperations.clone();
}
/**