From c73013cc3202b1200e8080a78006f3f99b3b1b50 Mon Sep 17 00:00:00 2001 From: didier Date: Wed, 16 Apr 2025 17:04:16 +0200 Subject: [PATCH] fix used --- pandora-box.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora-box.py b/pandora-box.py index 7340298..6cf1483 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -96,7 +96,7 @@ class scanThread(threading.Thread): time.sleep(1) def scan(self, file): - global infected_files, scanned, file_count, used + global infected_files, scanned, file_count, f_used logging.info(f"Start scan.") try: # get file information @@ -172,7 +172,7 @@ class scanThread(threading.Thread): queue_lock.release() # update status bar - update_bar(scanned * 100 // used) + update_bar(scanned * 100 // f_used) if has_quarantine and status == "ALERT": if not os.path.isdir(qfolder):