From 750e8f5b204f03d9030316d9b53d33edf05a5220 Mon Sep 17 00:00:00 2001 From: admins Date: Sun, 26 Jul 2020 15:07:37 -0400 Subject: removed loop so I can just call badprocs.py via cron --- bin/badprocs.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/badprocs.py b/bin/badprocs.py index a77ec54..d25e6f3 100755 --- a/bin/badprocs.py +++ b/bin/badprocs.py @@ -51,10 +51,7 @@ if __name__ == "__main__": "xmr", # lots of monero miners have this in the name ] - while True: - procsFound = getBadProcs(procsList) + procsFound = getBadProcs(procsList) - if len(procsFound) > 0: - mailAdmins(procsFound) - - time.sleep(300) + if len(procsFound) > 0: + mailAdmins(procsFound) -- cgit 1.4.1-2-gfad0