[Git][NTPsec/ntpsec][master] Fix a comment that became incorrect after the autonomy change.

Eric S. Raymond gitlab at mg.gitlab.com
Wed Sep 6 12:55:38 UTC 2017


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


Commits:
98ff4000 by Eric S. Raymond at 2017-09-06T12:55:22+00:00
Fix a comment that became incorrect after the autonomy change.

- - - - -


1 changed file:

- ntpd/ntp_refclock.c


Changes:

=====================================
ntpd/ntp_refclock.c
=====================================
--- a/ntpd/ntp_refclock.c
+++ b/ntpd/ntp_refclock.c
@@ -405,9 +405,9 @@ refclock_process_f(
 	 * Compute the timecode timestamp from the days, hours, minutes,
 	 * seconds and milliseconds/microseconds of the timecode. Use
 	 * clocktime() for the aggregate seconds and the msec/usec for
-	 * the fraction, when present. Note that this code relies on the
-	 * filesystem time for the years and does not use the years of
-	 * the timecode.
+	 * the fraction, when present. Note that this code will fall back
+	 * to deducing the year from the receipt time of the sample if
+	 * it finds only a 2-digit year in the timecode.
 	 */
 	if (!clocktime(pp->year, pp->day, pp->hour, pp->minute, pp->second, GMT,
 		       lfpuint(pp->lastrec), &pp->yearstart, &sec))



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/98ff4000f32d037b68f3ed6d1302265d61947b44

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/98ff4000f32d037b68f3ed6d1302265d61947b44
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/20170906/891ad596/attachment.html>


More information about the vc mailing list