Set forbid_negative_badness=True always and ignore forbid_negative_badness value in the config

This commit is contained in:
Alexey Avramov 2020-02-22 00:00:37 +09:00
parent 8eb65df15a
commit 8cc7c63f9c

View File

@ -1118,7 +1118,6 @@ def pid_to_badness(pid):
if oom_score_adj >= 0: if oom_score_adj >= 0:
badness += badness_adj badness += badness_adj
if forbid_negative_badness:
if badness < 0: if badness < 0:
badness = 0 badness = 0