]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: enable auto burst with very short polling intervals
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 6 Aug 2018 11:56:27 +0000 (13:56 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 8 Aug 2018 09:36:06 +0000 (11:36 +0200)
This fixes commit 5b75d4afefd04bef93d57cc3f087befc1062141e.

ntp_core.c

index 398e464dc1b8b594a5955acf42c020e75a81cd86..246d4a0bf86718bdfe4e3a5fadfea473c48d33b8 100644 (file)
@@ -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));