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)
|
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():
|
def get_gpu_usage():
|
||||||
gpus = tf.config.list_physical_devices('GPU')
|
gpus = tf.config.list_physical_devices('GPU')
|
||||||
if gpus:
|
if gpus:
|
||||||
|
@ -290,15 +299,6 @@ def setup_firefox_driver():
|
||||||
service = FirefoxService()
|
service = FirefoxService()
|
||||||
return webdriver.Firefox(service=service, options=options)
|
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():
|
def thread_counter():
|
||||||
while True:
|
while True:
|
||||||
print(f"Active anti-malware threads: {threading.active_count()}")
|
print(f"Active anti-malware threads: {threading.active_count()}")
|
||||||
|
|
Loading…
Reference in a new issue