You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2024. It is now read-only.
After computer is resumed from suspend, the time in the bar is often incorrect. Depending on luck, it might show the time just before the suspend for up to one minute.
This's likely caused by the fact that the timer uses scheduler that doesn't advance during sleep. E.g. if you suspend the machine at 18:03:01, and resume at 20:03:59, the clock won't update for about a minute.
This can be fixed by using Linux-specific timerfd: you can arm the timer to be triggered every minute at exactly :00 seconds of real-time clock, and you will only have to integrate the file descriptor into the event loop. If you skip the event (due to suspend as well), it will trigger immediately, and the kernel will even tell how many expirations you have skipped (this's not really relevant to this use case, but still pretty cool).