diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-29 21:17:07 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-29 21:18:07 +0100 |
commit | 8721d54f24007a37a8202919060b4bab09f2de98 (patch) | |
tree | d1cf03d4b3849ef2999140296f7a570b9243f790 /MenuApplets/Clock/main.cpp | |
parent | fed3416bd22850b8c55407c3d886ba3e6e9b297f (diff) | |
download | serenity-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.cpp | 2 |
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) { |