Merge "Remove unnecessary converting us to ms" into sc-dev
This commit is contained in:
@@ -204,7 +204,7 @@ public class BatteryInfo {
|
|||||||
}
|
}
|
||||||
final long prediction = discharging ? batteryUsageStats.getBatteryTimeRemainingMs() : 0;
|
final long prediction = discharging ? batteryUsageStats.getBatteryTimeRemainingMs() : 0;
|
||||||
final Estimate estimate = new Estimate(
|
final Estimate estimate = new Estimate(
|
||||||
PowerUtil.convertUsToMs(prediction),
|
prediction,
|
||||||
false, /* isBasedOnUsage */
|
false, /* isBasedOnUsage */
|
||||||
EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN);
|
EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN);
|
||||||
BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime);
|
BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime);
|
||||||
|
Reference in New Issue
Block a user