mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-01-20 21:00:20 -05:00
ntp: add offset option
Add offset option to the server/pool/peer directive. It specifies a correction which will be applied to offsets measured with the NTP source. It's particularly useful to compensate for a known asymmetry in network delay or timestamping errors.
This commit is contained in:
2
client.c
2
client.c
@@ -1083,6 +1083,8 @@ process_cmd_add_server_or_peer(CMD_Request *msg, char *line)
|
||||
opt_name = "maxsources";
|
||||
else if (data.params.min_stratum != SRC_DEFAULT_MINSTRATUM)
|
||||
opt_name = "minstratum";
|
||||
else if (data.params.offset != 0.0)
|
||||
opt_name = "offset";
|
||||
else if (data.params.poll_target != SRC_DEFAULT_POLLTARGET)
|
||||
opt_name = "polltarget";
|
||||
else if (data.params.version != NTP_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user