From: Miroslav Lichvar Date: Mon, 24 Jan 2011 17:04:33 +0000 (+0100) Subject: Disable variance source test for now X-Git-Tag: 1.25-pre1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b712b3a979fb4525f9b4bf8e9d77e1c07ac78a3a;p=thirdparty%2Fchrony.git 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. --- diff --git a/sources.c b/sources.c index 68d9bdbf..14e1372a 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