diff --git a/src/tools/tools.py b/src/tools/tools.py index 61ab244..f1e67d9 100644 --- a/src/tools/tools.py +++ b/src/tools/tools.py @@ -120,16 +120,16 @@ def human_readable_time_from_delta(delta: datetime.timedelta) -> str: time_str += "%d day%s, " % (delta.days, "s" if delta.days > 1 else "") if delta.seconds > 3600: - time_str += "%02d:" % (delta.seconds // 3600) + time_str += "%02d hours, " % (delta.seconds // 3600) else: - time_str += "00:" + time_str += "" if delta.seconds % 3600 > 60: - time_str += "%02d:" % (delta.seconds % 3600 // 60) + time_str += "%02d minutes, " % (delta.seconds % 3600 // 60) else: - time_str += "00:" + time_str += "" - return time_str + "%02d" % (delta.seconds % 60) + return time_str + "%02d seconds" % (delta.seconds % 60) def human_readable_time_from_ns(ns: int) -> str: