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

Commit 102c7f10 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." into main am: 63159a4f

parents f4cdb430 63159a4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3513,7 +3513,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);
        }