From 4432f29bd2dacdd1e8e6dead420418a67ffd68e5 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 5 Jan 2017 12:03:36 +0100 Subject: [PATCH] sources: try to replace jittery sources Similarly to falsetickers, distant, and unreachable sources, try to replace sources that have jitter larger than maxjitter. --- sources.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.47.3