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

Commit 15e0f83e authored by Adam Lesinski's avatar Adam Lesinski Committed by android-build-merger
Browse files

Merge "BatteryStats: use the same timestamp for comparing intervals" into nyc-dev am: 6a4d9a3c

am: fc6f395d

* commit 'fc6f395d':
  BatteryStats: use the same timestamp for comparing intervals

Change-Id: I184a2b1da7287216adb33f40662c4e0f5685c2b2
parents 13da5613 fc6f395d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3400,7 +3400,7 @@ public class BatteryStatsImpl extends BatteryStats {
                    powerState == DataConnectionRealTimeInfo.DC_POWER_STATE_MEDIUM
                            || powerState == DataConnectionRealTimeInfo.DC_POWER_STATE_HIGH;
            if (active) {
                mMobileRadioActiveStartTime = realElapsedRealtimeMs = elapsedRealtime;
                mMobileRadioActiveStartTime = realElapsedRealtimeMs = timestampNs / (1000 * 1000);
                mHistoryCur.states |= HistoryItem.STATE_MOBILE_RADIO_ACTIVE_FLAG;
            } else {
                realElapsedRealtimeMs = timestampNs / (1000*1000);