1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +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
(cherry picked from commit ce96c9cb1a8f81ff4bbc40f5a98d003d6ffacb57)
(cherry picked from commit fc053e2dfb3f094f71580a2647c029f1976445d3)
This commit is contained in:
Lennart Poettering 2020-01-21 12:03:02 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 0637255d3b
commit 6f9a8621d8

View File

@ -517,7 +517,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);
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);
}