mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
fix used
This commit is contained in:
parent
986bd7bfb3
commit
c73013cc32
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ class scanThread(threading.Thread):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
def scan(self, file):
|
def scan(self, file):
|
||||||
global infected_files, scanned, file_count, used
|
global infected_files, scanned, file_count, f_used
|
||||||
logging.info(f"Start scan.")
|
logging.info(f"Start scan.")
|
||||||
try:
|
try:
|
||||||
# get file information
|
# get file information
|
||||||
|
@ -172,7 +172,7 @@ class scanThread(threading.Thread):
|
||||||
queue_lock.release()
|
queue_lock.release()
|
||||||
|
|
||||||
# update status bar
|
# update status bar
|
||||||
update_bar(scanned * 100 // used)
|
update_bar(scanned * 100 // f_used)
|
||||||
|
|
||||||
if has_quarantine and status == "ALERT":
|
if has_quarantine and status == "ALERT":
|
||||||
if not os.path.isdir(qfolder):
|
if not os.path.isdir(qfolder):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue