mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Tighten test for removing very old reminders from queue.
This commit is contained in:
@@ -306,10 +306,11 @@ void HandleQueuedReminders(void)
|
|||||||
/* Calculate the next trigger time */
|
/* Calculate the next trigger time */
|
||||||
q->tt.nexttime = CalculateNextTime(q);
|
q->tt.nexttime = CalculateNextTime(q);
|
||||||
|
|
||||||
/* If next time is way in the past because computer has been
|
/* If trigger time is way in the past because computer has been
|
||||||
suspended or hibernated, remove from queue */
|
suspended or hibernated, remove from queue */
|
||||||
if (q->tt.nexttime != NO_TIME) {
|
if (q->tt.nexttime != NO_TIME) {
|
||||||
if (q->tt.nexttime * 60L < SystemTime(1) - 60 * MaxLateMinutes) {
|
if (q->tt.ttime < (SystemTime(1)/60) - MaxLateMinutes &&
|
||||||
|
q->tt.nexttime < (SystemTime(1)/60) - MaxLateMinutes) {
|
||||||
q->tt.nexttime = NO_TIME;
|
q->tt.nexttime = NO_TIME;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user