From 86cf18bb5cc24abe77b73e86e0c58df0dfa15a4d Mon Sep 17 00:00:00 2001 From: dbarzin Date: Sat, 4 Mar 2023 21:48:48 +0100 Subject: [PATCH] fix bug --- INSTALL.md | 5 +++-- pandora-box.curses | 4 ++-- pandora-box.ini.curses | 4 ++-- pandora-box.ini.rpi | 2 +- pandora-box.ini.ubuntu | 4 ++-- pandora-box.py | 6 ++---- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 57a4d87..7ca0923 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -53,6 +53,9 @@ You can configure Pandora-box in the _pandora-box.ini_ file : ; Set quarantine folder QUARANTINE_FOLDER = /var/quarantine + ; Number of threads + THREADS = 24 + ## Logging Open the rsyslog config file located at /etc/rsyslog.conf: @@ -129,5 +132,3 @@ Look a the Pandora logs files Look a the Pandora-box logs files tail -500f /var/log/pandora-box.log - - diff --git a/pandora-box.curses b/pandora-box.curses index 8119461..e570f5e 100644 --- a/pandora-box.curses +++ b/pandora-box.curses @@ -19,5 +19,5 @@ QUARANTINE = True ; Set quarantine folder QUARANTINE_FOLDER = /var/quarantine -; Maximum number of threads -THREADS = 2 +; Number of threads +THREADS = 24 diff --git a/pandora-box.ini.curses b/pandora-box.ini.curses index c714679..e570f5e 100644 --- a/pandora-box.ini.curses +++ b/pandora-box.ini.curses @@ -19,5 +19,5 @@ QUARANTINE = True ; Set quarantine folder QUARANTINE_FOLDER = /var/quarantine -; Maximum number of threads -THREADS = 4 +; Number of threads +THREADS = 24 diff --git a/pandora-box.ini.rpi b/pandora-box.ini.rpi index e6a0a42..c761000 100644 --- a/pandora-box.ini.rpi +++ b/pandora-box.ini.rpi @@ -19,5 +19,5 @@ QUARANTINE = True ; Set quarantine folder QUARANTINE_FOLDER = /var/quarantine -; Maximum number of threads +; Number of threads THREADS = 1 diff --git a/pandora-box.ini.ubuntu b/pandora-box.ini.ubuntu index 4ea9e16..1ce94a9 100644 --- a/pandora-box.ini.ubuntu +++ b/pandora-box.ini.ubuntu @@ -19,5 +19,5 @@ QUARANTINE = True ; Set quarantine folder QUARANTINE_FOLDER = /var/quarantine -; Maximum number of threads -THREADS = 4 +; Number of threads +THREADS = 24 diff --git a/pandora-box.py b/pandora-box.py index c404aac..59c6060 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -716,14 +716,12 @@ def clean(): break # wait for clean log('PRESS KEY TO CLEAN', flush=True) - screen.getch() + wait_mouse_click() # check key is still here try: - os.statvfs(mount_point) + log(f'{str(device.get("ID_FS_LABEL"))}', flush=True) except Exception: - log("Device not cleaned !", flush=True) - logging.info('device_not_cleaned') return "WAIT" # Remove infected files