From d35a798a03a7d028296fc5459ca41c968b1855cc3e426eb34d8a7d1a161b685d Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 29 May 2024 14:30:53 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=147 --- chrony-tai.patch | 10 ++++++++-- chrony.spec | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/chrony-tai.patch b/chrony-tai.patch index 8c2c2ba..f39e151 100644 --- a/chrony-tai.patch +++ b/chrony-tai.patch @@ -1,10 +1,16 @@ --- reference.c.orig +++ reference.c -@@ -562,6 +562,7 @@ is_offset_ok(double offset) +@@ -562,6 +562,13 @@ is_offset_ok(double offset) return 1; } -+ LOG(LOGS_WARN, "offset = % .010f ", offset); ++ static int firsttime = 1; ++ if (firsttime) { ++ LOG(LOGS_WARN, "max_offset = % .010f ", max_offset); ++ firsttime = 0; ++ } ++ ++ LOG(LOGS_WARN, "offset = % .010f ", offset); if (fabs(offset) > max_offset) { LOG(LOGS_WARN, "Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ", diff --git a/chrony.spec b/chrony.spec index f64e626..f02bbb4 100644 --- a/chrony.spec +++ b/chrony.spec @@ -298,8 +298,8 @@ find %{buildroot} -type f | xargs sed -i ' # Set random seed to get deterministic results export CLKNETSIM_RANDOM_SEED=24501 export CFLAGS="%{optflags}" -export CLKNETSIM_CONNECT_TIMEOUT=100 make %{?_smp_mflags} -C test/simulation/clknetsim +%if 0 pushd test/simulation ./124-tai ||: for f in tmp/*; do @@ -309,6 +309,7 @@ done echo popd exit 1 +%endif make %{?_smp_mflags} quickcheck %endif %endif