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

Commit 48cb75e8 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Android (Google) Code Review
Browse files

Merge "Fix CPU attribution when power stats collection is disabled" into main

parents f0d16342 d0279eca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ public class BatteryUsageStatsProvider {

                // Power calculators are applied in the order of registration
                mPowerCalculators.add(new BatteryChargeCalculator());
                if (mPowerStatsExporterEnabled) {
                if (!mPowerStatsExporterEnabled) {
                    mPowerCalculators.add(
                            new CpuPowerCalculator(mCpuScalingPolicies, mPowerProfile));
                }
@@ -385,7 +385,6 @@ public class BatteryUsageStatsProvider {
    }

    public void setPowerStatsExporterEnabled(boolean enabled) {

        mPowerStatsExporterEnabled = enabled;
    }
}