diff --git a/onionshare/common.py b/onionshare/common.py index 0a193d23..d97f0ccb 100644 --- a/onionshare/common.py +++ b/onionshare/common.py @@ -437,7 +437,7 @@ class Common(object): """ thresh = 1024.0 if b < thresh: - return f"{b} B" + return "{:.1f} B".format(b) units = ("KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB") u = 0 b /= thresh