From: Miroslav Lichvar Date: Fri, 14 Jun 2013 14:44:00 +0000 (+0200) Subject: Write freq and skew to drift file with six decimal places X-Git-Tag: 1.28-pre1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0171f6e9632c0bba89c5b0c06fca4bf5e14a6ba;p=thirdparty%2Fchrony.git Write freq and skew to drift file with six decimal places --- diff --git a/reference.c b/reference.c index 714581dc..4bcfd0c8 100644 --- a/reference.c +++ b/reference.c @@ -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);