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

Commit 2a15f38e authored by Evan Millar's avatar Evan Millar Committed by The Android Open Source Project
Browse files

AI 143207: am: CL 142996 Fix bug in human readable battery stats dumping code...

AI 143207: am: CL 142996 Fix bug in human readable battery stats dumping code which caused the wifi lock times to be off by an order of magnitude.
  Original author: emillar
  Merged from: //branches/cupcake/...

Automated import of CL 143207
parent 7ae5afc4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -851,11 +851,11 @@ public abstract class BatteryStats implements Parcelable {
            }
            if (fullWifiLockOnTime != 0 || scanWifiLockOnTime != 0) {
                pw.println(prefix + "    Full Wifi Lock Time: " 
                        + formatTime(fullWifiLockOnTime / 1000) 
                        + formatTimeMs(fullWifiLockOnTime / 1000) 
                        + "(" + formatRatioLocked(fullWifiLockOnTime, 
                                whichBatteryRealtime)+ ")");
                pw.println(prefix + "    Scan Wifi Lock Time: " 
                        + formatTime(scanWifiLockOnTime / 1000)
                        + formatTimeMs(scanWifiLockOnTime / 1000)
                        + "(" + formatRatioLocked(scanWifiLockOnTime, 
                                whichBatteryRealtime)+ ")");
            }