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

Commit 63159a4f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents ca6f6d5f bec242ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3377,7 +3377,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);
        }