[Git][NTPsec/ntpsec][master] ntpd: Rb users want .6f, not .3f, for frequency in loopstats log.

Gary E. Miller gitlab at mg.gitlab.com
Sun Feb 5 21:15:56 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
16a78886 by Gary E. Miller at 2017-02-05T13:14:51-08:00
ntpd: Rb users want .6f, not .3f, for frequency in loopstats log.

At the request of Achim Gratz

- - - - -


1 changed file:

- ntpd/ntp_util.c


Changes:

=====================================
ntpd/ntp_util.c
=====================================
--- a/ntpd/ntp_util.c
+++ b/ntpd/ntp_util.c
@@ -436,7 +436,7 @@ record_loop_stats(
 	day = lfpuint(now) / 86400 + MJD_1900;
 	setlfpuint(now, lfpuint(now) % 86400);
 	if (loopstats.fp != NULL) {
-		fprintf(loopstats.fp, "%lu %s %.9f %.3f %.9f %.6f %d\n",
+		fprintf(loopstats.fp, "%lu %s %.9f %.6f %.9f %.6f %d\n",
 		    day, ulfptoa(now, 3), offset, freq * 1e6, jitter,
 		    wander * 1e6, spoll);
 		fflush(loopstats.fp);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/16a78886c8fcda93386a1f70275fb8874973fe3e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170205/033be7e9/attachment.html>


More information about the vc mailing list