From 043869cfcef72e423eb51db9af3feac92a9be98670504ca8daeea13d67fd4759 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 29 May 2024 13:30:44 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=143 --- chrony-tai.patch | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/chrony-tai.patch b/chrony-tai.patch index 92a5b5e..904a81e 100644 --- a/chrony-tai.patch +++ b/chrony-tai.patch @@ -1,18 +1,21 @@ --- reference.c.orig +++ reference.c -@@ -562,10 +562,13 @@ is_offset_ok(double offset) +@@ -562,6 +562,7 @@ is_offset_ok(double offset) return 1; } -+ LOG(LOGS_WARN, "HERE: %.010f ", fabs(offset)); -+ LOG(LOGS_WARN, "HERE: %.010f ", max_offset); -+ LOG(LOGS_WARN, "HERE: ===================="); ++ 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) ", -- -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) + "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