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

Commit bdb02734 authored by Adam Lesinski's avatar Adam Lesinski
Browse files

BatteryStats: Clear power use when removing a UID from uid_cputime kernel module

Bug:22461683
Change-Id: Iffb847268d2872bd2a843e28dc41fa22b1e36828
parent 58295e71
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ public class KernelUidCpuTimeReader {
        if (index >= 0) {
            mLastUserTimeUs.removeAt(index);
            mLastSystemTimeUs.removeAt(index);
            mLastPowerMaUs.removeAt(index);
        }

        try (FileWriter writer = new FileWriter(sRemoveUidProcFile)) {