mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 01:10:44 +08:00
统一大小的显示方式
This commit is contained in:
parent
e0b60a48d8
commit
ed746ef364
@ -3238,7 +3238,7 @@ def format_bytes(size_bytes: int) -> str:
|
|||||||
while size_bytes >= 1024 and i < len(units) - 1:
|
while size_bytes >= 1024 and i < len(units) - 1:
|
||||||
size_bytes /= 1024
|
size_bytes /= 1024
|
||||||
i += 1
|
i += 1
|
||||||
return f"{size_bytes:.2f}{units[i]}"
|
return f"{size_bytes:.2f} {units[i]}"
|
||||||
|
|
||||||
|
|
||||||
def do_sign(account):
|
def do_sign(account):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user