Skip to content

Commit 7167301

Browse files
committed
Fix cache displaying wrong unit
1 parent d21b2d0 commit 7167301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_editor/cmds/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def main(sys_args: list[str] = sys.argv[1:]) -> None:
2626
return
2727

2828
def format_bytes(size: float) -> str:
29-
for unit in {"B", "KiB", "MiB", "GiB", "TiB"}:
29+
for unit in ("B", "KiB", "MiB", "GiB", "TiB"):
3030
if size < 1024:
3131
return f"{size:.2f} {unit}"
3232
size /= 1024

0 commit comments

Comments
 (0)