sources: try to replace jittery sources

Similarly to falsetickers, distant, and unreachable sources, try to
replace sources that have jitter larger than maxjitter.
This commit is contained in:
Miroslav Lichvar 2017-01-05 12:03:36 +01:00
parent 5fee3ed5e9
commit 4432f29bd2

View file

@ -425,10 +425,11 @@ SRC_UpdateReachability(SRC_Instance inst, int reachable)
}
/* Try to replace NTP sources that are unreachable, falsetickers, or
have root distance larger than the allowed maximum */
have root distance or jitter larger than the allowed maximums */
if (inst->type == SRC_NTP &&
((!inst->reachability && inst->reachability_size == SOURCE_REACH_BITS) ||
inst->status == SRC_FALSETICKER || inst->status == SRC_BAD_DISTANCE)) {
inst->status == SRC_BAD_DISTANCE || inst->status == SRC_JITTERY ||
inst->status == SRC_FALSETICKER)) {
NSR_HandleBadSource(inst->ip_addr);
}
}