chiark / gitweb /
timesyncd: check root distance
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 27 Aug 2014 14:47:20 +0000 (16:47 +0200)
committerKay Sievers <kay@vrfy.org>
Fri, 29 Aug 2014 16:13:05 +0000 (18:13 +0200)
commit3af0442c52090f34ae7a1c8e6b6587c540c06896
treeb6897b7859e0833ce3841091b6fa588ba92ea92b
parent487a36821ea214a73e1d0dcbd6d84123b50d1135
timesyncd: check root distance

NTPv4 servers don't reply with unsynchronized status when they lost
synchronization, they only keep increasing the root dispersion and it's
up to the client to decide at which point they no longer consider it
synchronized.

Ignore replies with root distance over 5 seconds.
src/timesync/timesyncd-manager.c