|
|
|
@ -89,7 +89,6 @@ def kill_hogs(memory_threshold,
@@ -89,7 +89,6 @@ def kill_hogs(memory_threshold,
|
|
|
|
|
# see https://psutil.readthedocs.io/en/latest/ |
|
|
|
|
proc.cached_cpu_percent = proc.cpu_percent() |
|
|
|
|
proc.cached_memory_percent = proc.memory_percent() |
|
|
|
|
proc_cpu_percent = 0 |
|
|
|
|
|
|
|
|
|
if proc.uids().real == 0 or (proc.cached_memory_percent < .1 |
|
|
|
|
and proc.cached_cpu_percent < 1): |
|
|
|
|