ntp: use current poll when backing off on KoD RATE

This commit is contained in:
Miroslav Lichvar 2017-01-19 10:17:08 +01:00
parent 99147ed8f2
commit 4e78975909

View file

@ -1622,7 +1622,7 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr,
UTI_IPToString(&inst->remote_addr.ip_addr)); UTI_IPToString(&inst->remote_addr.ip_addr));
/* Back off for a while and stop ongoing burst */ /* 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) { if (inst->opmode == MD_BURST_WAS_OFFLINE || inst->opmode == MD_BURST_WAS_ONLINE) {
inst->burst_good_samples_to_go = 0; inst->burst_good_samples_to_go = 0;