well that fixes it SOMEWHAT

This commit is contained in:
Sam Sneed 2024-07-24 19:09:26 -05:00
parent bbb5ceba7b
commit 3ef41a249a

18
main.py
View file

@ -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()}")