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

Commit da8c0abd authored by Rafal Slawik's avatar Rafal Slawik
Browse files

Fix oom_adj range

The value is written to /proc/pid/oom_score_adj. The old range was for
/proc/pid/oom_adj.

Test: m -j
Change-Id: I2432808786d6d1d453f16607d4e98c0b040f1902
parent 9a3ebed8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1161,11 +1161,11 @@ public final class ProcessList {
     *
     * @param pid The process identifier to set.
     * @param uid The uid of the app
     * @param amt Adjustment value -- lmkd allows -16 to +15.
     * @param amt Adjustment value -- lmkd allows -1000 to +1000
     *
     * {@hide}
     */
    public static final void setOomAdj(int pid, int uid, int amt) {
    public static void setOomAdj(int pid, int uid, int amt) {
        // This indicates that the process is not started yet and so no need to proceed further.
        if (pid <= 0) {
            return;