]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: change default maxdelay to 3 seconds
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 25 Mar 2015 14:47:16 +0000 (15:47 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 27 Mar 2015 09:37:54 +0000 (10:37 +0100)
chrony.texi.in
srcparams.h
test/simulation/114-presend

index 22e111ccc19b2393758f278d948b2d1f3f36ded5..858920d181e7b683e0fa8bc57183b7d4fdb09155 100644 (file)
@@ -2912,7 +2912,7 @@ If the user knows that round trip delays above a certain level should
 cause the measurement to be ignored, this level can be defined with the
 maxdelay command.  For example, @code{maxdelay 0.3} would indicate that
 measurements with a round-trip delay of 0.3 seconds or more should be
-ignored.
+ignored.  The default value is 3 seconds.
 
 @item maxdelayratio
 This option is similar to the maxdelay option above.  @code{chronyd}
index fefdcc205dc108a3ab311d7793c32f1466ac4b0c..826b78d2ad282c317d5cfad8d10c8db9fa02b59e 100644 (file)
@@ -53,7 +53,7 @@ typedef struct {
 #define SRC_DEFAULT_MINPOLL 6
 #define SRC_DEFAULT_MAXPOLL 10
 #define SRC_DEFAULT_PRESEND_MINPOLL 0
-#define SRC_DEFAULT_MAXDELAY 16.0
+#define SRC_DEFAULT_MAXDELAY 3.0
 #define SRC_DEFAULT_MAXDELAYRATIO 0.0
 #define SRC_DEFAULT_MAXDELAYDEVRATIO 10.0
 #define SRC_DEFAULT_MINSTRATUM 0
index 4abcae90606a887ee1341f06a74e28beda21d771..e9fe66e390bb067c6c7a47b2d3b6ab6f1d055b4f 100755 (executable)
@@ -5,7 +5,7 @@ test_start "presend option"
 
 min_sync_time=140
 max_sync_time=260
-client_server_options="presend 6"
+client_server_options="presend 6 maxdelay 16"
 
 run_test || test_fail
 check_chronyd_exit || test_fail