[Git][NTPsec/ntpsec][master] ntpd: more places frequency drift goes from %.3f to %.6f
Gary E. Miller
gitlab at mg.gitlab.com
Sat Feb 11 00:51:02 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
c341d009 by Gary E. Miller at 2017-02-10T16:49:57-08:00
ntpd: more places frequency drift goes from %.3f to %.6f
- - - - -
2 changed files:
- ntpd/ntp_loopfilter.c
- ntpd/ntp_util.c
Changes:
=====================================
ntpd/ntp_loopfilter.c
=====================================
--- a/ntpd/ntp_loopfilter.c
+++ b/ntpd/ntp_loopfilter.c
@@ -920,7 +920,7 @@ local_clock(
#ifdef DEBUG
if (debug)
printf(
- "local_clock: offset %.9f jit %.9f freq %.3f stab %.3f poll %d\n",
+ "local_clock: offset %.9f jit %.9f freq %.6f stab %.3f poll %d\n",
clock_offset, clock_jitter, drift_comp * MICROSECONDS,
clock_stability * MICROSECONDS, sys_poll);
#endif /* DEBUG */
@@ -1095,7 +1095,7 @@ set_freq(
}
}
#endif /* HAVE_KERNEL_PLL */
- mprintf_event(EVNT_FSET, NULL, "%s %.3f PPM", loop_desc,
+ mprintf_event(EVNT_FSET, NULL, "%s %.6f PPM", loop_desc,
drift_comp * MICROSECONDS);
}
#endif /* HAVE_LOCKCLOCK */
=====================================
ntpd/ntp_util.c
=====================================
--- a/ntpd/ntp_util.c
+++ b/ntpd/ntp_util.c
@@ -166,7 +166,7 @@ void drift_write(char *driftfile, double drift)
msyslog(LOG_ERR, "frequency file %s: %m", tmpfile);
return;
}
- snprintf(driftval, sizeof(driftval), "%.3f\n", drift);
+ snprintf(driftval, sizeof(driftval), "%.6f\n", drift);
IGNORE(write(fd, driftval, strlen(driftval)));
(void)close(fd);
/* atomic */
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c341d009e2a1cd573a7c303fc192b176c423e72d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170211/0a3f601b/attachment.html>
More information about the vc
mailing list