From b712b3a979fb4525f9b4bf8e9d77e1c07ac78a3a Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 24 Jan 2011 18:04:33 +0100 Subject: [PATCH] Disable variance source test for now It seems it triggers even with one source alone if it's close and accurate or polling interval is long enough. It would need to include max_clock_error. --- sources.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources.c b/sources.c index 68d9bdb..14e1372 100644 --- a/sources.c +++ b/sources.c @@ -428,7 +428,7 @@ SRC_SelectSource(unsigned long match_addr) double best_lo, best_hi; int depth, best_depth; int n_sel_sources; - double distance, min_distance; + double distance; int stratum, min_stratum; struct SelectInfo *si; double total_root_dispersion; @@ -660,6 +660,7 @@ SRC_SelectSource(unsigned long match_addr) } } +#if 0 /* We now have a list of indices for the sources which pass the false-ticker test. Now go on to reject those whose variance is greater than the minimum distance of any other */ @@ -692,6 +693,7 @@ SRC_SelectSource(unsigned long match_addr) #endif } } +#endif /* Now crunch the list and mark all sources as selectable */ for (i=j=0; i