From: Miroslav Lichvar Date: Thu, 5 Jan 2017 11:03:36 +0000 (+0100) Subject: sources: try to replace jittery sources X-Git-Tag: 3.0-pre3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4432f29bd2dacdd1e8e6dead420418a67ffd68e5;p=thirdparty%2Fchrony.git sources: try to replace jittery sources Similarly to falsetickers, distant, and unreachable sources, try to replace sources that have jitter larger than maxjitter. --- diff --git a/sources.c b/sources.c index 5c9bbe3d..f91ffb15 100644 --- a/sources.c +++ b/sources.c @@ -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); } }