]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: rework calculation of transmit timeout
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Mar 2023 16:04:57 +0000 (17:04 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 30 Mar 2023 13:28:08 +0000 (15:28 +0200)
commit4a11399c2ebb78c9de8b4fca256d00b82416ff32
tree2eefbec2dc61d957ab4f57b25c9e0c8a5fb8e5d4
parentcf98551ea1fd3ee0fed3f079b62c07fb9e55228a
ntp: rework calculation of transmit timeout

Previously, in the calculation of the next transmission time
corresponding to the current polling interval, the reference point was
the current time in the client mode (i.e. the time when the response is
processed) and the last transmission time in the symmetric mode.

Rework the code to use the last transmission in both modes and make it
independent from the time when the response is processed to avoid extra
delays due to waiting for HW TX timestamps.
ntp_core.c