]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
reference: always update driftfile on exit
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 18 Aug 2014 16:31:02 +0000 (18:31 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 19 Aug 2014 08:46:35 +0000 (10:46 +0200)
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

index f4e20770908904ee3214b709ce2b347295e47014..d77d82a02980e9956d7bf0c85a57f07d05fca43e 100644 (file)
@@ -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);
   }