[Git][NTPsec/ntpsec][master] 2 commits: Updated new features documentation re: ntpq & root distance.

Ian Bruene gitlab at mg.gitlab.com
Fri Jan 26 17:28:24 UTC 2018


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
ddae7d89 by Ian Bruene at 2018-01-26T11:27:12-06:00
Updated new features documentation re: ntpq & root distance.

- - - - -
15b24d29 by Eric S. Raymond at 2018-01-26T11:27:12-06:00
Fill in sys_rootdist even if we have to combine peers.

- - - - -


2 changed files:

- docs/ntpsec.txt
- ntpd/ntp_proto.c


Changes:

=====================================
docs/ntpsec.txt
=====================================
--- a/docs/ntpsec.txt
+++ b/docs/ntpsec.txt
@@ -216,6 +216,9 @@ codebase has been outright removed, with less than 5% new code added.
   variable that is the root distance of the selected peer. This can
   fill in the MIB's ntpEntTimeDistance entry.
 
+* ntpq displays the root distance (aka. syncronization distance) in the
+  sysinfo command.
+
 == Configuration Improvements ==
 
 * The notorious collision between pool and nopeer in older


=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -2122,6 +2122,7 @@ clock_combine(
 	}
 	sys_offset = z / y;
 	sys_jitter = SQRT(w / y + SQUARE(peers[syspeer].seljit));
+	sys_rootdist = peers[syspeer].synch;
 }
 
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/5c09fb7066fed7736c417095f7d45f437b46ea71...15b24d29e9cc6c2b5faf1782bbbff0c6ccf2bfc5

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/5c09fb7066fed7736c417095f7d45f437b46ea71...15b24d29e9cc6c2b5faf1782bbbff0c6ccf2bfc5
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/20180126/338020f8/attachment.html>


More information about the vc mailing list