Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d293d229 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Create missing Uids when recording network stats." into jb-mr2-dev

parents 2156c386 51797ed7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1579,9 +1579,7 @@ public final class BatteryStatsImpl extends BatteryStats {
        for (int i = 0; i < size; i++) {
            entry = uidStats.getValues(i, entry);

            final Uid u = mUidStats.get(entry.uid);
            if (u == null) continue;

            final Uid u = getUidStatsLocked(entry.uid);
            u.mStartedTcpBytesReceived = entry.rxBytes;
            u.mStartedTcpBytesSent = entry.txBytes;
            u.mTcpBytesReceivedAtLastUnplug = u.mCurrentTcpBytesReceived;