Merge "BatteryStats: Fix issue where network traffic accounting might be lost" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
09c09fd345
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user