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