]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Write freq and skew to drift file with six decimal places
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 14 Jun 2013 14:44:00 +0000 (16:44 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 14 Jun 2013 17:24:03 +0000 (19:24 +0200)
reference.c

index 714581dc545eb0acd2750c139d0dc71325eba345..4bcfd0c8323cdcc057fd6342e66040dca7a06625 100644 (file)
@@ -311,7 +311,7 @@ update_drift_file(double freq_ppm, double skew)
   }
 
   /* Write the frequency and skew parameters in ppm */
-  if ((fprintf(out, "%20.4f %20.4f\n", freq_ppm, 1.0e6 * skew) < 0) |
+  if ((fprintf(out, "%20.6f %20.6f\n", freq_ppm, 1.0e6 * skew) < 0) |
       fclose(out)) {
     LOG(LOGS_WARN, LOGF_Reference, "Could not write to temporary driftfile %s.tmp",
         drift_file);