ntp: shorten minimum allowed polling interval

With the filter option it is useful to collect NTP measurements at
a higher rate.
This commit is contained in:
Miroslav Lichvar 2018-08-08 14:52:11 +02:00
parent 189aafde9d
commit dcce79fdbe
2 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ options:
This option specifies the minimum interval between requests sent to the server 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 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 polling interval should not drop below 32 seconds. The default is 6 (64
seconds), the minimum is -4 (1/16th of a second), and the maximum is 24 (6 seconds), the minimum is -6 (1/64th of a second), and the maximum is 24 (6
months). Note that intervals shorter than 6 (64 seconds) should generally not 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 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 abuse. A sub-second interval will be enabled only when the server is reachable
@ -79,7 +79,7 @@ should be in a local network.
This option specifies the maximum interval between requests sent to the server 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 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 interval should stay at or below 9 (512 seconds). The default is 10 (1024
seconds), the minimum is -4 (1/16th of a second), and the maximum is 24 (6 seconds), the minimum is -6 (1/64th of a second), and the maximum is 24 (6
months). months).
*iburst*::: *iburst*:::
With this option, the interval between the first four requests sent to the With this option, the interval between the first four requests sent to the

View file

@ -221,7 +221,7 @@ static ARR_Instance broadcasts;
/* Spacing required between samples for any two servers/peers (to /* Spacing required between samples for any two servers/peers (to
minimise risk of network collisions) (in seconds) */ minimise risk of network collisions) (in seconds) */
#define MIN_SAMPLING_SEPARATION 0.02 #define MIN_SAMPLING_SEPARATION 0.002
#define MAX_SAMPLING_SEPARATION 0.2 #define MAX_SAMPLING_SEPARATION 0.2
/* Randomness added to spacing between samples for one server/peer */ /* Randomness added to spacing between samples for one server/peer */
@ -268,7 +268,7 @@ static ARR_Instance broadcasts;
#define MAX_MAXDELAYDEVRATIO 1.0e6 #define MAX_MAXDELAYDEVRATIO 1.0e6
/* Minimum and maximum allowed poll interval */ /* Minimum and maximum allowed poll interval */
#define MIN_POLL -4 #define MIN_POLL -6
#define MAX_POLL 24 #define MAX_POLL 24
/* Enable sub-second polling intervals only when the peer delay is not /* Enable sub-second polling intervals only when the peer delay is not