2024-05-27 16:31:02 +00:00
|
|
|
--- test/simulation/124-tai.orig
|
|
|
|
+++ test/simulation/124-tai
|
2024-05-29 13:00:00 +00:00
|
|
|
@@ -20,7 +20,7 @@ client_conf="
|
2024-05-29 12:26:07 +00:00
|
|
|
refclock SHM 0 dpoll 0 poll 0 tai
|
|
|
|
leapsectz right/UTC
|
|
|
|
leapsecmode ignore
|
|
|
|
-maxchange 1e-3 1 0"
|
2024-05-29 12:56:21 +00:00
|
|
|
+maxchange 1.1e-3 1 0"
|
|
|
|
|
|
|
|
run_test || test_fail
|
|
|
|
check_chronyd_exit || test_fail
|
2024-05-29 11:34:58 +00:00
|
|
|
--- reference.c.orig
|
|
|
|
+++ reference.c
|
2024-05-29 11:50:51 +00:00
|
|
|
@@ -562,10 +562,13 @@ is_offset_ok(double offset)
|
2024-05-29 11:34:58 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2024-05-29 11:50:51 +00:00
|
|
|
+ LOG(LOGS_WARN, "HERE: %.010f ", fabs(offset));
|
|
|
|
+ LOG(LOGS_WARN, "HERE: %.010f ", max_offset);
|
|
|
|
+ LOG(LOGS_WARN, "HERE: ====================");
|
2024-05-29 11:34:58 +00:00
|
|
|
if (fabs(offset) > max_offset) {
|
|
|
|
LOG(LOGS_WARN,
|
|
|
|
- "Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
|
|
|
|
- -offset, max_offset, !max_offset_ignore ? "exiting" : "ignored");
|
|
|
|
+ "Adjustment of %lu seconds exceeds the allowed maximum of %lu seconds (%s) ",
|
|
|
|
+ (unsigned long)-offset, (unsigned long)max_offset, !max_offset_ignore ? "exiting" : "ignored");
|
|
|
|
if (!max_offset_ignore)
|
|
|
|
end_ref_mode(0);
|
|
|
|
else if (max_offset_ignore > 0)
|