Correct calculation

This commit is contained in:
Joey Schulze 2008-05-11 17:03:39 +00:00
parent 5e3891ec45
commit 7bded835a2

View File

@ -1700,10 +1700,12 @@ void logmsg(pri, msg, from, flags)
repeatinterval[f->f_repeatcount]);
if (f->f_prevcount == 1 && DupesPending++ == 0) {
int seconds;
dprintf("setting alarm to flush duplicate messages\n");
LastAlarm -= alarm(0);
MarkSeq += LastAlarm;
seconds = alarm(0);
MarkSeq += LastAlarm - seconds;
LastAlarm = seconds;
if (LastAlarm > TIMERINTVL)
LastAlarm = TIMERINTVL;
alarm(LastAlarm);