]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Disable variance source test for now
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 24 Jan 2011 17:04:33 +0000 (18:04 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 25 Jan 2011 16:40:46 +0000 (17:40 +0100)
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

index 68d9bdbff60e782ce17face0632ba9be8b721c22..14e1372ace9be658216c6ad1ec70d172d105cbeb 100644 (file)
--- 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<n_sel_sources; i++) {