Browse Source

Only give terminals of the user.

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

2
roles/kill_memory_hogs/files/kill_hoggs.py

@ -56,7 +56,7 @@ def find_terminals_of_user(user: str): @@ -56,7 +56,7 @@ def find_terminals_of_user(user: str):
return [
t.split()[1]
for t in str(terminals.stdout).strip('b\'').strip('').split('\\n')
if t != ''
if user in t
]

Loading…
Cancel
Save