Merge "Fix ambient display time unit error" into pi-dev
This commit is contained in:
@@ -657,7 +657,7 @@ public class BatteryStatsHelper {
|
|||||||
* {@link #removeHiddenBatterySippers(List)}.
|
* {@link #removeHiddenBatterySippers(List)}.
|
||||||
*/
|
*/
|
||||||
private void addAmbientDisplayUsage() {
|
private void addAmbientDisplayUsage() {
|
||||||
long ambientDisplayMs = mStats.getScreenDozeTime(mRawRealtimeUs, mStatsType);
|
long ambientDisplayMs = mStats.getScreenDozeTime(mRawRealtimeUs, mStatsType) / 1000;
|
||||||
double power = mPowerProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY)
|
double power = mPowerProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY)
|
||||||
* ambientDisplayMs / (60 * 60 * 1000);
|
* ambientDisplayMs / (60 * 60 * 1000);
|
||||||
if (power > 0) {
|
if (power > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user