ntpsec: lower maxclock by 1

To align with recommendation from the ntpsec docs.
This commit is contained in:
Hoang Nguyen 2023-04-07 00:00:00 +07:00
parent d288c9ecfa
commit fde3e055c9
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ tos minclock 5
# minclock + 2 (or 3) + number of pools
# Also should be an odd number
{% set maxclock = 8 + (ntp_opts.pools | length) %}
{% set maxclock = 7 + (ntp_opts.pools | length) %}
tos maxclock {{ (maxclock | int %2 == 0) | ternary(maxclock + 1, maxclock) | int }}
# Exchange time with everybody, but don't allow configuration.