mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-06-19 04:51:08 +03:00
refactor
This commit is contained in:
+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