diff --git a/cubi_tk/common.py b/cubi_tk/common.py index 37f0cbc0..ae66ee58 100644 --- a/cubi_tk/common.py +++ b/cubi_tk/common.py @@ -195,9 +195,9 @@ def sizeof_fmt(num, suffix="B"): # pragma: nocover """Source: https://stackoverflow.com/a/1094933/84349""" for unit in ["", "Ki", "Mi", "Gi", "Ti", "Pi", "Ei", "Zi"]: if abs(num) < 1024.0: - return "%3.1f%s%s" % (num, unit, suffix) + return "%3.1f %s%s" % (num, unit, suffix) num /= 1024.0 - return "%.1f%s%s" % (num, "Yi", suffix) + return "%.1f %s%s" % (num, "Yi", suffix) def get_terminal_columns():