diff --git a/slpkg/utilities.py b/slpkg/utilities.py index 2c9cb30e..dd3a8bf8 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -173,9 +173,9 @@ class Utilities: units: list = ['KB', 'MB', 'GB'] for unit in units: - size: float = size / 1000 if size < 1000: - return f'{size:.2f} {unit}' + return f'{size:.0f} {unit}' + size /= 1000 @staticmethod def apply_package_pattern(data: dict, packages: list) -> list: