From 8cc7c63f9c9d1141538d70b1463b2839abfa3bd9 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sat, 22 Feb 2020 00:00:37 +0900 Subject: [PATCH] Set forbid_negative_badness=True always and ignore forbid_negative_badness value in the config --- nohang/nohang | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nohang/nohang b/nohang/nohang index dd496a3..eec3e3e 100755 --- a/nohang/nohang +++ b/nohang/nohang @@ -1118,9 +1118,8 @@ def pid_to_badness(pid): if oom_score_adj >= 0: badness += badness_adj - if forbid_negative_badness: - if badness < 0: - badness = 0 + if badness < 0: + badness = 0 return badness, oom_score