]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Set maxupdateskew to 1000 ppm by default
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 23 Apr 2010 10:53:26 +0000 (12:53 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Apr 2010 12:35:27 +0000 (14:35 +0200)
This will prevent from using unreliable frequency estimate on iburst
when starting without drift file.

chrony.texi
conf.c

index 7c8eeec51bd3ca1c1bd88c0cf770802bde07834f..f9980f130881369c223c001f2287af56710068e7 100644 (file)
@@ -2207,6 +2207,7 @@ loss rate is not very reliable.
 
 The @code{maxupdateskew} parameter allows the threshold for determining
 whether an estimate may be so unreliable that it should not be used.
+By default, the threshold is 1000 ppm.
 
 The syntax is
 
diff --git a/conf.c b/conf.c
index dd8940b36c77027c252922db42af3b984c5db9ff..6cae47428383aa69852f1fd933d36dd3f348dca5 100644 (file)
--- a/conf.c
+++ b/conf.c
@@ -117,7 +117,7 @@ static char *keys_file = NULL;
 static char *drift_file = NULL;
 static char *rtc_file = NULL;
 static unsigned long command_key_id;
-static double max_update_skew = DBL_MAX;
+static double max_update_skew = 1000.0;
 
 static int cmd_port = -1;