]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
conf: change default stratumweight to 0.001
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 3 Nov 2014 14:13:52 +0000 (15:13 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 3 Nov 2014 14:13:52 +0000 (15:13 +0100)
chrony.texi.in
conf.c

index b3b4fb175b62124e6143f82a1e947d43e88c1efa..82e534974203256bc96c5a282d15acf3669508d6 100644 (file)
@@ -2965,10 +2965,9 @@ The syntax is
 stratumweight <dist-in-seconds>
 @end example
 
-By default, it is 1 second.  This usually means that sources with lower stratum
-will be preferred to sources with higher stratum even when their distance is
-significantly worse.  Setting @code{stratumweight} to 0 makes @code{chronyd}
-ignore stratum when selecting the source.
+By default, the weight is 0.001 seconds.  This means that stratum of the
+sources in the selection process matters only when the differences between the
+distances are in milliseconds.
 
 @c }}}
 @c {{{ tempcomp
diff --git a/conf.c b/conf.c
index 2887013f6e512fcf758e4d1e9469f7eb5d52a7b2..038ca090a70869dd8d81964cfa510195a876769d 100644 (file)
--- a/conf.c
+++ b/conf.c
@@ -92,7 +92,7 @@ static double max_clock_error = 1.0; /* in ppm */
 static double max_slew_rate = 1e6 / 12.0; /* in ppm */
 
 static double reselect_distance = 1e-4;
-static double stratum_weight = 1.0;
+static double stratum_weight = 1e-3;
 static double combine_limit = 3.0;
 
 static int cmd_port = DEFAULT_CANDM_PORT;