mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-10-21 02:58:45 +00:00
refactor
This commit is contained in:
1 parent
059ca8760f
commit
a70e50b9f3
5 files changed
+168
-160
No files matched your search
+1
-1
@@ -31,7 +31,7 @@ def human_bytes(n: int) -> str:
|
||||
for unit in ('B', 'KB', 'MB', 'GB'):
|
||||
if abs(n) < 1024:
|
||||
return f"{n:.1f}{unit}"
|
||||
n /= 1024
|
||||
n /= 1024 # type: ignore
|
||||
return f"{n:.1f}TB"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user