Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
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