diff --git a/lmkd.cpp b/lmkd.cpp index 7ea7c2c..e1c5276 100644 --- a/lmkd.cpp +++ b/lmkd.cpp @@ -1898,7 +1898,7 @@ static struct proc *proc_get_heaviest(int oomadj) { while (curr != head) { int pid = ((struct proc *)curr)->pid; int tasksize = proc_get_size(pid); - if (tasksize <= 0) { + if (tasksize < 0) { struct adjslot_list *next = curr->next; pid_remove(pid); curr = next;