diff --git a/system/loggerd/config.py b/system/loggerd/config.py index 5c2c89b73fcf20..e1c47c768df93f 100644 --- a/system/loggerd/config.py +++ b/system/loggerd/config.py @@ -9,7 +9,7 @@ STATS_SOCKET = "ipc:///tmp/stats" STATS_FLUSH_TIME_S = 60 -def get_available_percent(default=None): +def get_available_percent(default: float) -> float: try: statvfs = os.statvfs(Paths.log_root()) available_percent = 100.0 * statvfs.f_bavail / statvfs.f_blocks @@ -19,7 +19,7 @@ def get_available_percent(default=None): return available_percent -def get_available_bytes(default=None): +def get_available_bytes(default: int) -> int: try: statvfs = os.statvfs(Paths.log_root()) available_bytes = statvfs.f_bavail * statvfs.f_frsize