diff --git a/radicale/utils.py b/radicale/utils.py index d25e08e0..ca4da132 100644 --- a/radicale/utils.py +++ b/radicale/utils.py @@ -378,7 +378,10 @@ def format_unit(value: float, binary: bool = False) -> str: unit = "k" else: unit = "" - return ("%.1f %s" % (value, unit)) + if unit == "": + return ("%d" % value) + else: + return ("%.1f %s" % (value, unit)) def limit_str(content: str, limit: int) -> str: