In -z0 mode, wake up exactly on the minute.

This commit is contained in:
Dianne Skoll
2018-11-04 13:39:00 -05:00
parent 7761baba10
commit 81677528a5
+2 -3
View File
@@ -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) {