From 2be89bc6f2c8a6abfa9e9382ba8b1d8a794d2b90 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 14 Feb 2012 14:47:57 +0100 Subject: [PATCH] Fix last commit --- rtc_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_linux.c b/rtc_linux.c index 2395bb8..e7b025e 100644 --- a/rtc_linux.c +++ b/rtc_linux.c @@ -1048,7 +1048,7 @@ RTC_Linux_Trim(void) /* Estimate the offset in case writertc is called or chronyd is terminated during rapid sampling */ coef_seconds_fast = -now.tv_usec / 1e6 + 0.5; - coef_ref_time = now; + coef_ref_time = now.tv_sec; /* And start rapid sampling, interrupts on now */ if (timeout_running) {