rename function and fix type

This commit is contained in:
Peter Bieringer
2025-12-13 08:06:58 +01:00
parent c73a53d815
commit cf98ef0b4a
2 changed files with 4 additions and 4 deletions

View File

@@ -303,7 +303,7 @@ def format_ut(unixtime: int) -> str:
return r
def format_int(value: int, binary: bool = False) -> str:
def format_unit(value: float, binary: bool = False) -> str:
if binary:
if value > UNIT_G:
value = value / UNIT_G