removed loop so I can just call badprocs.py via cron

This commit is contained in:
admins 2020-07-26 15:07:37 -04:00
parent 0721da9d36
commit 750e8f5b20
1 changed files with 3 additions and 6 deletions

View File

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