Correct calculation
This commit is contained in:
parent
5e3891ec45
commit
7bded835a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user