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

Commit 9b00fa04 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BatteryStatsImpl:fix ArithmeticException due to list size is zero."...

Merge "BatteryStatsImpl:fix ArithmeticException due to list size is zero." into main am: 63159a4f am: 102c7f10

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3095157



Change-Id: I484982dcdb56c1cf262ebb5c4ff38f72ef13b6ea
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3d824d06 102c7f10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3698,7 +3698,7 @@ public class BatteryStatsImpl extends BatteryStats {
            }
            return mTotalTimeUs + (mNesting > 0
                    ? (curBatteryRealtimeUs - mUpdateTimeUs)
                            / (mTimerPool != null ? mTimerPool.size() : 1)
                            / (mTimerPool != null && mTimerPool.size() > 0 ? mTimerPool.size() : 1)
                    : 0);
        }