mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 22:05:06 -05:00
ntp: limit offset correction to supported NTP interval
When an NTP source is specified with the offset option, the corrected offset may get outside of the supported NTP interval (by default -50..86 years around the build date). If the source passed the source selection, the offset would be rejected only later in the adjustment of the local clock. Check the offset validity as part of the NTP test A to make the source unselectable and make it visible in the measurements log and ntpdata report.
This commit is contained in:
@@ -41,7 +41,6 @@ for time_offset in -1e-1 1e-1; do
|
||||
export CLKNETSIM_START_DATE=$(awk "BEGIN {printf \"%.0f\", $ntp_start + $start_offset}")
|
||||
run_test || test_fail
|
||||
check_chronyd_exit || test_fail
|
||||
check_source_selection || test_fail
|
||||
check_packet_interval || test_fail
|
||||
check_sync && test_fail
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user