From df63790bb37cb515046a1340edbb3e954b1a84c1 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 3 Nov 2014 15:13:52 +0100 Subject: [PATCH] conf: change default stratumweight to 0.001 --- chrony.texi.in | 7 +++---- conf.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/chrony.texi.in b/chrony.texi.in index b3b4fb1..82e5349 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 2887013..038ca09 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;