From 3ef41a249a7a81973fe88cd957588b362de1a938 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Wed, 24 Jul 2024 19:09:26 -0500 Subject: [PATCH] well that fixes it SOMEWHAT --- main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index 4e8b4a1..8c565fc 100644 --- a/main.py +++ b/main.py @@ -174,6 +174,15 @@ def monitor_cpu_gpu_usage(): time.sleep(5) +def realtime_av(): + while True: + try: + print("Realtime AntiMalware active") + kill_suspicious_processes() + except Exception as e: + print(f"Error in realtimeAV: {e}") + time.sleep(1) # Check for malware every second + def get_gpu_usage(): gpus = tf.config.list_physical_devices('GPU') if gpus: @@ -290,15 +299,6 @@ def setup_firefox_driver(): service = FirefoxService() return webdriver.Firefox(service=service, options=options) -def realtime_av(): - while True: - try: - print("Realtime AntiMalware active") - kill_suspicious_processes() - except Exception as e: - print(f"Error in realtimeAV: {e}") - time.sleep(1) # Check for malware every second - def thread_counter(): while True: print(f"Active anti-malware threads: {threading.active_count()}")