Browse Source

Fixed typo.

pull/10/head
Egon Rijpkema 3 years ago
parent
commit
908db42222
  1. 2
      roles/kill_memory_hogs/files/kill_hoggs.py

2
roles/kill_memory_hogs/files/kill_hoggs.py

@ -85,7 +85,7 @@ def kill_hogs(memory_threshold, @@ -85,7 +85,7 @@ def kill_hogs(memory_threshold,
time.sleep(interval)
for proc in procs:
try:
# First call t0 cpu_percent() without blocking interval is meaningless.
# First call of cpu_percent() without blocking interval is meaningless.
# see https://psutil.readthedocs.io/en/latest/
proc.cached_cpu_percent = proc.cpu_percent()
proc.cached_memory_percent = proc.memory_percent()

Loading…
Cancel
Save