From 4ccabfc661460cb0cba27864682f3f746103b6c6 Mon Sep 17 00:00:00 2001 From: alexnigl Date: Wed, 23 Apr 2025 12:12:01 +0200 Subject: [PATCH] floor division instead of type conversion --- timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timer.py b/timer.py index 721b90a..872a027 100755 --- a/timer.py +++ b/timer.py @@ -77,7 +77,7 @@ def start_app(enddate): tlbl.config(fg="red") else: tlbl.configure(text=deltaStr(delta)) - root.after(1000 - int(datetime.datetime.now().microsecond / 1000), update) + root.after(1000 - datetime.datetime.now().microsecond // 1000, update) root.bind("", resize) root.bind("", lambda x: root.destroy())