[Git][NTPsec/ntpsec][master] 2 commits: refclock_nmea: set jitter high on NMEA timeout.

Gary E. Miller gitlab at mg.gitlab.com
Fri Sep 15 21:00:56 UTC 2017


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


Commits:
caa305e8 by Gary E. Miller at 2017-09-15T21:00:39Z
refclock_nmea: set jitter high on NMEA timeout.

Then the NMEA comes back, the jitter used to be zero, even though
the initial time from the NMEA is rotten.  Part of bug #62.

- - - - -
04bb7054 by Gary E. Miller at 2017-09-15T21:00:39Z
Docs: add tally code to ntpq and ntpmon doc.

- - - - -


2 changed files:

- docs/includes/peerfmt.txt
- ntpd/refclock_nmea.c


Changes:

=====================================
docs/includes/peerfmt.txt
=====================================
--- a/docs/includes/peerfmt.txt
+++ b/docs/includes/peerfmt.txt
@@ -18,3 +18,17 @@ of the link:decode.html#peer[peer status word]
 |+offset+        |offset of server relative to this host
 |+jitter+        |jitter
 |=======================================================================
+
+The tally code is one of the following:
+[width="80%",cols="10%,90%"]
+|==================================================
+| Code| Description
+|     | discarded as not valid
+| +x+ | discarded by intersection algorithm
+| +.+ | discarded by table overflow (not used)
+| +-+ | discarded by the cluster algorithm
+| +++ | included by the combine algorithm
+| +#+ | backup (more than +tos maxclock+ sources)
+| +*+ | system peer
+| +o+ | PPS peer (when the prefer peer is valid)
+|==================================================


=====================================
ntpd/refclock_nmea.c
=====================================
--- a/ntpd/refclock_nmea.c
+++ b/ntpd/refclock_nmea.c
@@ -1175,6 +1175,8 @@ nmea_poll(
 	 */
 	if (pp->coderecv == pp->codeproc) {
 		refclock_report(peer, CEVNT_TIMEOUT);
+                /* reset the jitter, to avoid bad time on recovery */
+		peer->jitter = LOGTOD(PRECISION);
 	} else {
 		pp->polls++;
 		pp->lastref = pp->lastrec;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/f0bf5b0ef6a4953a0f994031e654c4a91760f5f0...04bb705424feb2d8bb33112f0810837765c054c8

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/f0bf5b0ef6a4953a0f994031e654c4a91760f5f0...04bb705424feb2d8bb33112f0810837765c054c8
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/20170915/aec89ccf/attachment.html>


More information about the vc mailing list