SHA256
1
0
forked from pool/chrony
chrony/chrony-tai.patch

22 lines
583 B
Diff
Raw Normal View History

--- reference.c.orig
+++ reference.c
@@ -562,6 +562,7 @@ is_offset_ok(double offset)
return 1;
}
+ LOG(LOGS_WARN, "fabs(offset) = %.010f ", fabs(offset));
if (fabs(offset) > max_offset) {
LOG(LOGS_WARN,
"Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
--- test/simulation/124-tai.orig
+++ test/simulation/124-tai
@@ -20,7 +20,7 @@ client_conf="
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