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

Commit 7e844a4a 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: cfc3be21

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

Change-Id: I9ac00449bb4cd3e19583bbc4efb8fe67b4f9959e
parents cd9c7309 cfc3be21
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);