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

Commit 6103e044 authored by Bookatz's avatar Bookatz Committed by android-build-merger
Browse files

Merge changes from topic 'wakelockTotalDuration' into oc-dev

am: 6b1989c7

Change-Id: I04a7323ed927ebfad40129166d7e0cc61be7b3af
parents 6d70b7aa 6b1989c7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2756,9 +2756,9 @@ public abstract class BatteryStats implements Parcelable {
            long elapsedRealtimeUs, String name, int which, String linePrefix) {
        long totalTimeMicros = 0;
        int count = 0;
        long max = -1;
        long current = -1;
        long totalDuration = -1;
        long max = 0;
        long current = 0;
        long totalDuration = 0;
        if (timer != null) {
            totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which);
            count = timer.getCountLocked(which);