ntp: reduce poll adjustment with specific failed tests

Reduce the poll increment for measurements that are rejected due to a
failed maxdelay* test in order to better track the source.
This commit is contained in:
Miroslav Lichvar 2020-06-17 14:18:49 +02:00
parent d29f7b7c70
commit feef0dd983

View file

@ -1796,8 +1796,8 @@ process_response(NCR_Instance inst, NTP_Local_Address *local_addr,
break;
}
} else {
/* Slowly increase the polling interval if we can't get good packet */
adjust_poll(inst, 0.1);
/* Slowly increase the polling interval if we can't get a good response */
adjust_poll(inst, testD ? 0.02 : 0.1);
}
/* If in client mode, no more packets are expected to be coming from the