2024-05-29 11:34:58 +00:00
|
|
|
--- reference.c.orig
|
|
|
|
+++ reference.c
|
2024-05-29 14:30:53 +00:00
|
|
|
@@ -562,6 +562,13 @@ is_offset_ok(double offset)
|
2024-05-29 11:34:58 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2024-05-29 14:30:53 +00:00
|
|
|
+ static int firsttime = 1;
|
|
|
|
+ if (firsttime) {
|
|
|
|
+ LOG(LOGS_WARN, "max_offset = % .010f ", max_offset);
|
|
|
|
+ firsttime = 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ LOG(LOGS_WARN, "offset = % .010f ", offset);
|
2024-05-29 11:34:58 +00:00
|
|
|
if (fabs(offset) > max_offset) {
|
|
|
|
LOG(LOGS_WARN,
|
2024-05-29 13:30:44 +00:00
|
|
|
"Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
|
|
|
|
--- test/simulation/124-tai.orig
|
|
|
|
+++ test/simulation/124-tai
|
2024-05-29 13:35:42 +00:00
|
|
|
@@ -20,13 +20,15 @@ client_conf="
|
2024-05-29 13:30:44 +00:00
|
|
|
refclock SHM 0 dpoll 0 poll 0 tai
|
|
|
|
leapsectz right/UTC
|
|
|
|
leapsecmode ignore
|
|
|
|
-maxchange 1e-3 1 0"
|
|
|
|
+maxchange 1.1e-3 1 0"
|
|
|
|
|
|
|
|
run_test || test_fail
|
|
|
|
check_chronyd_exit || test_fail
|
2024-05-29 13:35:42 +00:00
|
|
|
check_source_selection || test_fail
|
|
|
|
check_sync || test_fail
|
|
|
|
|
|
|
|
+test_pass
|
|
|
|
+
|
|
|
|
export CLKNETSIM_START_DATE=$(TZ=UTC date -d 'Jan 01 2009 00:10:00' +'%s')
|
|
|
|
|
|
|
|
time_offset=-1000
|