[Git][NTPsec/ntpsec][master] Repair invertibility of systime in capture logs.

Eric S. Raymond gitlab at mg.gitlab.com
Tue Dec 29 14:52:32 UTC 2015


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
9e7d3bfa by Eric S. Raymond at 2015-12-29T09:52:03Z
Repair invertibility of systime in capture logs.

- - - - -


1 changed file:

- ntpd/ntp_intercept.c


Changes:

=====================================
ntpd/ntp_intercept.c
=====================================
--- a/ntpd/ntp_intercept.c
+++ b/ntpd/ntp_intercept.c
@@ -292,7 +292,8 @@ void intercept_get_systime(const char *legend, l_fp *now)
 	get_ostime(&ts);
 	normalize_time(ts, sys_fuzz > 0.0 ? ntp_random() : 0, now);
 	if (mode == capture)
-	    printf("systime %s %s\n", legend, lfpdump(now));
+	    printf("systime %s %ld.%ld\n",
+		   legend, (long)ts.tv_sec, (long)ts.tv_nsec);
 
     }
 }



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9e7d3bfa94d0c1778621a4be7012ca6e340f4324
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151229/a91076b2/attachment.html>


More information about the vc mailing list