aboutsummaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'common.py')
-rw-r--r--common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/common.py b/common.py
index b8913de..b46840f 100644
--- a/common.py
+++ b/common.py
@@ -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)