mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 22:25:07 -05:00
ntp: fix initial poll to follow non-LAN minimum
If a sub-second polling interval is configured, initialize the local poll to 0 to avoid a shorter interval between the first and second request in case no response to the first request is received (in time).
This commit is contained in:
@@ -650,7 +650,7 @@ NCR_CreateInstance(NTP_Remote_Address *remote_addr, NTP_Source_Type type,
|
|||||||
result->tx_timeout_id = 0;
|
result->tx_timeout_id = 0;
|
||||||
result->tx_suspended = 1;
|
result->tx_suspended = 1;
|
||||||
result->opmode = MD_OFFLINE;
|
result->opmode = MD_OFFLINE;
|
||||||
result->local_poll = result->minpoll;
|
result->local_poll = MAX(result->minpoll, MIN_NONLAN_POLL);
|
||||||
result->poll_score = 0.0;
|
result->poll_score = 0.0;
|
||||||
zero_local_timestamp(&result->local_tx);
|
zero_local_timestamp(&result->local_tx);
|
||||||
result->burst_good_samples_to_go = 0;
|
result->burst_good_samples_to_go = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user