Set forbid_negative_badness=True always and ignore forbid_negative_badness value in the config
This commit is contained in:
parent
8eb65df15a
commit
8cc7c63f9c
@ -1118,9 +1118,8 @@ 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
|
|
||||||
|
|
||||||
return badness, oom_score
|
return badness, oom_score
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user