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

Commit ef20d0ff authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Fix isLastMemoryLevelNormal check for Service B computation

Flag: EXEMPTED_bugfix
Fixes: 372360536
Test: atest MockingOomAdjusterTest
Change-Id: I919d0e90ece1adaf3b79ef7333873a11e7e40e6c
parent 8356ba21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2553,7 +2553,7 @@ public class OomAdjuster {
                    double cachedRestoreThreshold =
                            mProcessList.getCachedRestoreThresholdKb() * thresholdModifier;

                    if (isLastMemoryLevelNormal() && lastPssOrRss >= cachedRestoreThreshold) {
                    if (!isLastMemoryLevelNormal() && lastPssOrRss >= cachedRestoreThreshold) {
                        state.setServiceHighRam(true);
                        state.setServiceB(true);
                        //Slog.i(TAG, "ADJ " + app + " high ram!");