100% coverage

This commit is contained in:
2021-04-03 21:30:57 +03:00
parent cad85b0f20
commit 207da4caa7
31 changed files with 534 additions and 45 deletions

View File

@ -89,6 +89,6 @@ def pretty_size(size: Optional[float], level: int = 0) -> str:
if size is None:
return ""
if size < 1024 or level == 3:
if size < 1024 or level >= 3:
return f"{size:.1f} {str_level()}"
return pretty_size(size / 1024, level + 1)