Reinhard Max 2024-05-29 13:30:44 +00:00 committed by Git OBS Bridge
parent fcfbfc82e7
commit 043869cfce

View File

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