Merge "BatteryStats: Fix issue where network traffic accounting might be lost" into nyc-dev

This commit is contained in:
Adam Lesinski
2016-02-27 00:15:09 +00:00
committed by Android (Google) Code Review

View File

@@ -8192,7 +8192,8 @@ public class BatteryStatsImpl extends BatteryStats {
+ " txPackets=" + entry.txPackets); + " txPackets=" + entry.txPackets);
} }
if (entry.rxBytes == 0 || entry.txBytes == 0) { if (entry.rxBytes == 0 && entry.txBytes == 0) {
// Skip the lookup below since there is no work to do.
continue; continue;
} }