From: Miroslav Lichvar Date: Mon, 6 Aug 2018 11:56:27 +0000 (+0200) Subject: ntp: enable auto burst with very short polling intervals X-Git-Tag: 3.4-pre1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e3045df4d6922a86fb1140c61428651f3ae8bf;p=thirdparty%2Fchrony.git ntp: enable auto burst with very short polling intervals This fixes commit 5b75d4afefd04bef93d57cc3f087befc1062141e. --- diff --git a/ntp_core.c b/ntp_core.c index 398e464d..246d4a0b 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));