about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xbin/badprocs.py9
1 files 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)