From: Miroslav Lichvar Date: Mon, 3 Nov 2014 14:13:52 +0000 (+0100) Subject: conf: change default stratumweight to 0.001 X-Git-Tag: 2.0-pre1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df63790bb37cb515046a1340edbb3e954b1a84c1;p=thirdparty%2Fchrony.git conf: change default stratumweight to 0.001 --- diff --git a/chrony.texi.in b/chrony.texi.in index b3b4fb17..82e53497 100644 --- a/chrony.texi.in +++ b/chrony.texi.in @@ -2965,10 +2965,9 @@ The syntax is stratumweight @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 2887013f..038ca090 100644 --- 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;