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

Commit 618b8c1e authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

DO NOT MERGE. I like'd ctate's change so much I'm doin it myself!

Change-Id: If571d3ff5e73252a0653c30ec40178ec1591ddd9
parent a7d868d4
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -1376,13 +1376,13 @@ public final class BatteryStatsImpl extends BatteryStats {
                for (int i=0; i<N; i++) {
                for (int i=0; i<N; i++) {
                    StopwatchTimer st = mPartialTimers.get(i);
                    StopwatchTimer st = mPartialTimers.get(i);
                    if (st.mInList) {
                    if (st.mInList) {
                        Uid uid = st.mUid;
                        if (uid != null && uid.mUid != Process.SYSTEM_UID) {
                            int myUTime = utime/num;
                            int myUTime = utime/num;
                            int mySTime = stime/num;
                            int mySTime = stime/num;
                            utime -= myUTime;
                            utime -= myUTime;
                            stime -= mySTime;
                            stime -= mySTime;
                            num--;
                            num--;
                        Uid uid = st.mUid;
                        if (uid != null && uid.mUid != Process.SYSTEM_UID) {
                            Uid.Proc proc = uid.getProcessStatsLocked("*wakelock*");
                            Uid.Proc proc = uid.getProcessStatsLocked("*wakelock*");
                            proc.addCpuTimeLocked(myUTime, mySTime);
                            proc.addCpuTimeLocked(myUTime, mySTime);
                            proc.addSpeedStepTimes(cpuSpeedTimes);
                            proc.addSpeedStepTimes(cpuSpeedTimes);