From: Miroslav Lichvar Date: Mon, 18 Aug 2014 16:31:02 +0000 (+0200) Subject: reference: always update driftfile on exit X-Git-Tag: 1.31-pre1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=068ce237af3bd4d6e712a5befec6ea0ad3d9efb9;p=thirdparty%2Fchrony.git 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. --- diff --git a/reference.c b/reference.c index f4e20770..d77d82a0 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); }