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

Commit 2fae4974 authored by Matt Buckley's avatar Matt Buckley Committed by Android (Google) Code Review
Browse files

Merge "Fix early hint missing safety margin" into tm-qpr-dev

parents 11b180fb ffabce9a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -238,7 +238,8 @@ void PowerAdvisor::sendPredictedWorkDuration() {
        std::lock_guard lock(mPowerHalMutex);
        HalWrapper* const halWrapper = getPowerHal();
        if (halWrapper != nullptr) {
            halWrapper->sendActualWorkDuration(*predictedDuration, systemTime());
            halWrapper->sendActualWorkDuration(*predictedDuration + kTargetSafetyMargin.count(),
                                               systemTime());
        }
    }
}