Correct the formula of battery capacity estimation. am: c800ddc824
am: ac655b5a7c
Change-Id: Ifa298b57e62e4238740b177a7e4a346671d56987
This commit is contained in:
committed by
android-build-merger
commit
c95ecb5ed8
@@ -9614,7 +9614,7 @@ public class BatteryStatsImpl extends BatteryStats {
|
||||
resetAllStatsLocked();
|
||||
if (chargeUAh > 0) {
|
||||
// Only use the reported coulomb charge value if it is supported and reported.
|
||||
mEstimatedBatteryCapacity = (int) ((level / 100.0) * (chargeUAh / 1000));
|
||||
mEstimatedBatteryCapacity = (int) ((chargeUAh / 1000) / (level / 100.0));
|
||||
}
|
||||
mDischargeStartLevel = level;
|
||||
reset = true;
|
||||
|
||||
Reference in New Issue
Block a user