[Git][NTPsec/ntpsec][master] Log all time steps (GitLab issue #390)

Eric S. Raymond gitlab at mg.gitlab.com
Thu Sep 21 11:02:41 UTC 2017


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


Commits:
74abf134 by Eric S. Raymond at 2017-09-21T11:02:23Z
Log all time steps (GitLab issue #390)

- - - - -


1 changed file:

- libntp/systime.c


Changes:

=====================================
libntp/systime.c
=====================================
--- a/libntp/systime.c
+++ b/libntp/systime.c
@@ -390,14 +390,14 @@ step_systime(
 
 	/* <--- time-critical path ended with call to the settime hook <--- */
 
+	msyslog(LOG_WARNING, "CLOCK: time stepped by %Lf", step);
+
 	/* only used for utmp/wtmpx time-step recording */
 	tslast.tv_sec = timets.tv_sec;
 	tslast.tv_nsec = timets.tv_nsec;
 
 	sys_residual = 0;
 	lamport_violated = (step < 0);
-	if (lamport_violated)
-	    msyslog(LOG_WARNING, "CLOCK: negative time step %Lf", step);
 	if (step_callback)
 		(*step_callback)();
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/74abf134111920f0018953b26cc16f84258e4042

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/74abf134111920f0018953b26cc16f84258e4042
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170921/757a5392/attachment.html>


More information about the vc mailing list