diff --git a/pqcli/ui/custom_progress_bar.py b/pqcli/ui/custom_progress_bar.py index d903b03..eda24da 100644 --- a/pqcli/ui/custom_progress_bar.py +++ b/pqcli/ui/custom_progress_bar.py @@ -12,7 +12,10 @@ def format_timespan(timespan: datetime.timedelta) -> str: if num < 60.0: return f"~{int(num)}m" num /= 60 - return f"~{num:.01f}h" + if num < 24.0: + return f"~{num:.01f}h" + num /= 24 + return f"~{num:.01f}d" class CustomProgressBar(urwid.Widget):