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

Skip to content
Commit 9bb7cb8a authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

Fix division by zero in maybeAdjustDesiredStockLevelLocked().

If getBatteryScreenOffDischargeMah() returns zero that will lead to
a division by zero when computing estimatedLifeHours that will
bring down the entire system server. Guard against this by returning
from the function early if it returns zero.

Change-Id: I4905d7184e5185a07e4185fa0e263559d85cff49
parent 5fe69e14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment