From 91ef9be93d6556266ef3ec34f9b52ed142052a40 Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Sun, 26 Jul 2020 15:58:17 -0400 Subject: reduce .lower() calls significantly --- bin/badprocs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/badprocs.py b/bin/badprocs.py index b4e3225..863e365 100755 --- a/bin/badprocs.py +++ b/bin/badprocs.py @@ -18,8 +18,9 @@ def getBadProcs(procsList): ) for proc in procsRunning: + lilproc = proc.lower() for badproc in procsList: - if badproc in proc.lower(): + if badproc in lilproc: procsFound.append("Found {0} :: {1}".format(badproc, proc)) return procsFound -- cgit 1.4.1-2-gfad0