]> git.ipfire.org Git - thirdparty/chrony.git/commit
sources: update source selection with unreachable sources
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 29 Apr 2024 13:42:16 +0000 (15:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 30 Apr 2024 13:52:18 +0000 (15:52 +0200)
commitc43efccf0273aba564ace7538951a16481144cbf
tree55487a149552b9d0f91c8d09046df81cdf94645f
parent1affd03ccad838ce45344c041f84fcc465b3b4b6
sources: update source selection with unreachable sources

When updating the reachability register of a source with zero, call the
source selection even if the source is not the currently selected as the
best source. But do that only if all reachability bits are zero, i.e.
there was no synchronized response for last 8 polls.

This will enable the source selection to log a message when only
unreachable sources are updating reachability and it decreases the
number of unnecessary source selections.
sources.c