From 857c97fba34f332da857b8456363e915e013574d Mon Sep 17 00:00:00 2001 From: Didier Date: Mon, 13 Jun 2022 21:00:07 +0000 Subject: [PATCH] work --- INSTALL.md | 5 ++++- pandorabox.py | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 0cbd017..7a6e522 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -93,6 +93,9 @@ Start Pandora poetry run start - +Homepage +-------- + +sudo fbi -T 2 -d /dev/fb1 -noverbose -a demo.png diff --git a/pandorabox.py b/pandorabox.py index ded77bc..b2417c4 100755 --- a/pandorabox.py +++ b/pandorabox.py @@ -345,7 +345,7 @@ def scan(mount_point, used): try : full_path = os.path.join(root,file) file_size = os.path.getsize(full_path) - log("Check %s [%s]" % (file, human_readable_size(file_size))) + # log("Check %s [%s]" % (file, human_readable_size(file_size))) file_scan_start_time = time.time() if FAKE_SCAN : time.sleep(0.1) @@ -363,7 +363,11 @@ def scan(mount_point, used): break time.sleep(0.5) file_scan_end_time = time.time() - log("Check %s (%ds) -> %-s" % (file,(file_scan_end_time - file_scan_start_time),status)) + log("Scan %s [%s] -> %s (%ds)" % ( + file, + human_readable_size(file_size), + status, + (file_scan_end_time - file_scan_start_time))) scanned += os.path.getsize(full_path) file_count += 1 update_bar(scanned * 100 // used)