From db0a1f79f5a683790b9368f3c458dc0453a37cdc Mon Sep 17 00:00:00 2001 From: Conatum Date: Fri, 18 Aug 2023 21:11:19 +0300 Subject: [PATCH] fix (pomodoro): Fix incorrect remaining. --- src/modules/pomodoro/timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/pomodoro/timer.py b/src/modules/pomodoro/timer.py index 490c587a..bbddcbf2 100644 --- a/src/modules/pomodoro/timer.py +++ b/src/modules/pomodoro/timer.py @@ -235,7 +235,7 @@ class Timer: pattern = self.pattern name = self.base_name if stage is not None: - remaining = int(5 * math.ceil((stage.end - utc_now()).total_seconds() / 60)) + remaining = int(math.ceil((stage.end - utc_now()).total_seconds() / 60)) stagestr = t(self.focus_name if stage.focused else self.break_name, locale=self.locale.value) else: remaining = self.data.focus_length // 60