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]);
|
repeatinterval[f->f_repeatcount]);
|
||||||
|
|
||||||
if (f->f_prevcount == 1 && DupesPending++ == 0) {
|
if (f->f_prevcount == 1 && DupesPending++ == 0) {
|
||||||
|
int seconds;
|
||||||
dprintf("setting alarm to flush duplicate messages\n");
|
dprintf("setting alarm to flush duplicate messages\n");
|
||||||
|
|
||||||
LastAlarm -= alarm(0);
|
seconds = alarm(0);
|
||||||
MarkSeq += LastAlarm;
|
MarkSeq += LastAlarm - seconds;
|
||||||
|
LastAlarm = seconds;
|
||||||
if (LastAlarm > TIMERINTVL)
|
if (LastAlarm > TIMERINTVL)
|
||||||
LastAlarm = TIMERINTVL;
|
LastAlarm = TIMERINTVL;
|
||||||
alarm(LastAlarm);
|
alarm(LastAlarm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user