mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-21 14:29:41 +02:00
work
This commit is contained in:
parent
145ebb41a0
commit
857c97fba3
2 changed files with 10 additions and 3 deletions
|
@ -93,6 +93,9 @@ Start Pandora
|
||||||
poetry run start
|
poetry run start
|
||||||
|
|
||||||
|
|
||||||
|
Homepage
|
||||||
|
--------
|
||||||
|
|
||||||
|
sudo fbi -T 2 -d /dev/fb1 -noverbose -a demo.png
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -345,7 +345,7 @@ def scan(mount_point, used):
|
||||||
try :
|
try :
|
||||||
full_path = os.path.join(root,file)
|
full_path = os.path.join(root,file)
|
||||||
file_size = os.path.getsize(full_path)
|
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()
|
file_scan_start_time = time.time()
|
||||||
if FAKE_SCAN :
|
if FAKE_SCAN :
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
@ -363,7 +363,11 @@ def scan(mount_point, used):
|
||||||
break
|
break
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
file_scan_end_time = time.time()
|
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)
|
scanned += os.path.getsize(full_path)
|
||||||
file_count += 1
|
file_count += 1
|
||||||
update_bar(scanned * 100 // used)
|
update_bar(scanned * 100 // used)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue