mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-05-03 22:37:08 +02:00
In -z0 mode, wake up exactly on the minute.
This commit is contained in:
+2
-3
@@ -184,9 +184,8 @@ void HandleQueuedReminders(void)
|
||||
/* Wake up once a minute to recalibrate sleep time in
|
||||
case of laptop hibernation */
|
||||
if (Daemon <= 0) {
|
||||
if (SleepTime > 60) {
|
||||
SleepTime = 60;
|
||||
}
|
||||
/* Wake up on the next exact minute */
|
||||
SleepTime = 60 - (SystemTime(1)%60);
|
||||
}
|
||||
|
||||
if (Daemon >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user