From 99e3045df4d6922a86fb1140c61428651f3ae8bf Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 6 Aug 2018 13:56:27 +0200 Subject: [PATCH] ntp: enable auto burst with very short polling intervals This fixes commit 5b75d4afefd04bef93d57cc3f087befc1062141e. --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index 398e464..246d4a0 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1144,7 +1144,7 @@ transmit_timeout(void *arg) /* Start a new burst if the burst option is enabled and the average polling interval including the burst will not fall below the minimum polling interval */ - if (inst->auto_burst && inst->local_poll > inst->minpoll && inst->local_poll > 1) + if (inst->auto_burst && inst->local_poll > inst->minpoll) NCR_InitiateSampleBurst(inst, BURST_GOOD_SAMPLES, MIN(1 << (inst->local_poll - inst->minpoll), MAX_BURST_TOTAL_SAMPLES));