]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: use current poll when backing off on KoD RATE
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 19 Jan 2017 09:17:08 +0000 (10:17 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 23 Jan 2017 14:58:55 +0000 (15:58 +0100)
ntp_core.c

index 8ee5041aaecc5f76603f2849b2fd480cf2d95005..4a19f2983f9cc91b1aa04278a28e22cba556aa24 100644 (file)
@@ -1622,7 +1622,7 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr,
             UTI_IPToString(&inst->remote_addr.ip_addr));
 
         /* Back off for a while and stop ongoing burst */
-        delay_time += 4 * (1UL << inst->minpoll);
+        delay_time += 4 * (1UL << inst->local_poll);
 
         if (inst->opmode == MD_BURST_WAS_OFFLINE || inst->opmode == MD_BURST_WAS_ONLINE) {
           inst->burst_good_samples_to_go = 0;