diff options
Diffstat (limited to 'src/lib/timerwheel.c')
-rw-r--r-- | src/lib/timerwheel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/timerwheel.c b/src/lib/timerwheel.c index 3225bf35..0f5e2e04 100644 --- a/src/lib/timerwheel.c +++ b/src/lib/timerwheel.c @@ -301,7 +301,6 @@ static void timerwheel_move(void) send_frct_pkt(a->frcti); free(a); - } } @@ -394,7 +393,7 @@ static int timerwheel_ack(int fd, pthread_rwlock_rdlock(&frcti->lock); - slot = (((ts_to_ns(now) + frcti->mdev) >> ACKQ_RES) + 1) + slot = (((ts_to_ns(now) + (TICTIME << 1)) >> ACKQ_RES) + 1) & (ACKQ_SLOTS - 1); pthread_rwlock_unlock(&frcti->lock); |