diff options
Diffstat (limited to 'common.py')
-rw-r--r-- | common.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -139,13 +139,13 @@ def load_config(path=None, groupnames=None): def format_bytes(n): if n < 768: - return f'{n}B' + return f'{n}\u202FB' elif n < 768*1024: - return f'{n/1024:.2f}kiB' + return f'{n/1024:.2f}\u202FkiB' elif n < 768*1024*1024: - return f'{n/1048576:.2f}MiB' + return f'{n/1048576:.2f}\u202FMiB' else: - return f'{n/1073741824:.2f}GiB' + return f'{n/1073741824:.2f}\u202FGiB' def format_time(s): fs, s = modf(s) |