mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 03:18:52 -06:00
fix: print byte counts with size_text
This commit is contained in:
1 parent
49a8ed801e
commit
4f6bb08e2a
5 files changed
+16
-5
No files matched your search
@@ -19,6 +19,7 @@ import json
|
||||
from pathlib import Path
|
||||
|
||||
from core.hashing import compute_hashes
|
||||
from core.sizes import size_text
|
||||
from resolve.directories import expand_directory_entries
|
||||
from model.registry import list_registered_platforms
|
||||
from model.database import load_database
|
||||
@@ -132,7 +133,7 @@ def main() -> int:
|
||||
print(f"{row['path']} ({', '.join(row['emulators'])})")
|
||||
total = sum(row["size"] for row in rows)
|
||||
print(f"{len(rows)} collected files only an emulator install provides, "
|
||||
f"{total / 1024**2:.1f} MB")
|
||||
f"{size_text(total)}")
|
||||
return 1 if args.strict and rows else 0
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user