summaryrefslogtreecommitdiff
path: root/MenuApplets/Clock/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-29 21:17:07 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-29 21:18:07 +0100
commit8721d54f24007a37a8202919060b4bab09f2de98 (patch)
treed1cf03d4b3849ef2999140296f7a570b9243f790 /MenuApplets/Clock/main.cpp
parentfed3416bd22850b8c55407c3d886ba3e6e9b297f (diff)
downloadserenity-8721d54f24007a37a8202919060b4bab09f2de98.zip
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! :^)
Diffstat (limited to 'MenuApplets/Clock/main.cpp')
-rw-r--r--MenuApplets/Clock/main.cpp2
1 files changed, 1 insertions, 1 deletions
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) {