Browse Source

Removed unused variable.

pull/11/head
Egon Rijpkema 3 years ago
parent
commit
f3530ed25e
  1. 1
      roles/kill_memory_hogs/files/kill_hoggs.py

1
roles/kill_memory_hogs/files/kill_hoggs.py

@ -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):

Loading…
Cancel
Save