mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
timesyncd: log louder when we refuse a server due to root distance
This is something people should know about, since it's caused by misconfiguration. Fixes: #13912
This commit is contained in:
parent
c680e4efa8
commit
ce96c9cb1a
@ -514,7 +514,7 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
|
|||||||
|
|
||||||
root_distance = ntp_ts_short_to_d(&ntpmsg.root_delay) / 2 + ntp_ts_short_to_d(&ntpmsg.root_dispersion);
|
root_distance = ntp_ts_short_to_d(&ntpmsg.root_delay) / 2 + ntp_ts_short_to_d(&ntpmsg.root_dispersion);
|
||||||
if (root_distance > (double) m->max_root_distance_usec / (double) USEC_PER_SEC) {
|
if (root_distance > (double) m->max_root_distance_usec / (double) USEC_PER_SEC) {
|
||||||
log_debug("Server has too large root distance. Disconnecting.");
|
log_info("Server has too large root distance. Disconnecting.");
|
||||||
return manager_connect(m);
|
return manager_connect(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user