]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: change minimum allowed poll to -7
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 18 Jul 2022 11:11:27 +0000 (13:11 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 21 Jul 2022 13:33:35 +0000 (15:33 +0200)
Change the minimum poll allowed in configuration from -6 to -7. This
matches some PTP profiles using 128 sync messages per second.

doc/chrony.conf.adoc
ntp_core.c

index e60e98389cc7c8562d178ce89cc3caefd5c5bf5a..8ad2f5d88326ddd50f8be76d7b113048992cabe1 100644 (file)
@@ -72,7 +72,7 @@ server, or its IP address. It supports the following options:
 This option specifies the minimum interval between requests sent to the server
 as a power of 2 in seconds. For example, *minpoll 5* would mean that the
 polling interval should not drop below 32 seconds. The default is 6 (64
-seconds), the minimum is -6 (1/64th of a second), and the maximum is 24 (6
+seconds), the minimum is -7 (1/128th of a second), and the maximum is 24 (6
 months). Note that intervals shorter than 6 (64 seconds) should generally not
 be used with public servers on the Internet, because it might be considered
 abuse. A sub-second interval will be enabled only when the server is reachable
@@ -82,7 +82,7 @@ should be in a local network.
 This option specifies the maximum interval between requests sent to the server
 as a power of 2 in seconds. For example, *maxpoll 9* indicates that the polling
 interval should stay at or below 9 (512 seconds). The default is 10 (1024
-seconds), the minimum is -6 (1/64th of a second), and the maximum is 24 (6
+seconds), the minimum is -7 (1/128th of a second), and the maximum is 24 (6
 months).
 *iburst*:::
 With this option, *chronyd* will start with a burst of 4-8 requests in order to
index 95d7ba237b857c1fb38dc59bfdf52b62e17d2728..9aa7d7e259758dd8b1436d684527825ea33bb359 100644 (file)
@@ -267,7 +267,7 @@ static ARR_Instance broadcasts;
 #define MAX_MAXDELAYDEVRATIO 1.0e6
 
 /* Minimum and maximum allowed poll interval */
-#define MIN_POLL -6
+#define MIN_POLL -7
 #define MAX_POLL 24
 
 /* Enable sub-second polling intervals only when the peer delay is not