From 068ce237af3bd4d6e712a5befec6ea0ad3d9efb9 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 18 Aug 2014 18:31:02 +0200 Subject: [PATCH] reference: always update driftfile on exit This is useful with the new fallback function of the -s option to restore the system time at which chronyd was previously stopped. --- reference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference.c b/reference.c index f4e2077..d77d82a 100644 --- a/reference.c +++ b/reference.c @@ -267,7 +267,7 @@ REF_Finalise(void) LCL_SetLeap(0); } - if (drift_file && drift_file_age > 0.0) { + if (drift_file) { update_drift_file(LCL_ReadAbsoluteFrequency(), our_skew); }