[Git][NTPsec/ntpsec][master] Add back in a comment to explain where a_lastcode is seen.

Gary E. Miller gitlab at mg.gitlab.com
Mon Dec 12 23:31:53 UTC 2016


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


Commits:
b3031adc by Gary E. Miller at 2016-12-12T15:30:01-08:00
Add back in a comment to explain where a_lastcode is seen.

- - - - -


1 changed file:

- ntpd/refclock_shm.c


Changes:

=====================================
ntpd/refclock_shm.c
=====================================
--- a/ntpd/refclock_shm.c
+++ b/ntpd/refclock_shm.c
@@ -518,6 +518,7 @@ shm_timer(
 	 * practice for the driver to pretend to know calendar time;
 	 * that interpretation is best left to higher levels.
 	 */
+	/* a_lastcode is seen as timecode with: ntpq -c cv [associd] */
 	c = snprintf(pp->a_lastcode, sizeof(pp->a_lastcode),
 		     "%ld.%09ld", shm_stat.tvt.tv_sec,	shm_stat.tvt.tv_nsec);
 	pp->lencode = (c < (int)sizeof(pp->a_lastcode)) ? c : 0;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b3031adcee16bd6cd997d180a6147aa9299ca70f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161212/2c1db5c7/attachment.html>


More information about the vc mailing list