From 8721d54f24007a37a8202919060b4bab09f2de98 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 29 Dec 2019 21:17:07 +0100 Subject: Clock.MenuApplet: Only wake up once per second This avoids an issue where we'd sometimes go longer than a whole second between updates. Thanks to Roman May for the suggestion! :^) --- MenuApplets/Clock/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MenuApplets/Clock/main.cpp') diff --git a/MenuApplets/Clock/main.cpp b/MenuApplets/Clock/main.cpp index 3d74554e67..42c2fc1966 100644 --- a/MenuApplets/Clock/main.cpp +++ b/MenuApplets/Clock/main.cpp @@ -14,7 +14,7 @@ public: { m_time_width = Font::default_bold_font().width("2222-22-22 22:22:22"); - m_timer = CTimer::construct(300, [this] { + m_timer = CTimer::construct(1000, [this] { static time_t last_update_time; time_t now = time(nullptr); if (now != last_update_time) { -- cgit v1.2.3