well that fixes it SOMEWHAT
This commit is contained in:
parent
bbb5ceba7b
commit
3ef41a249a
1 changed files with 9 additions and 9 deletions
18
main.py
18
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()}")
|
||||
|
|
Loading…
Reference in a new issue