[Git][NTPsec/ntpsec][master] mode 6: output clk_jitter and clk_wander to 3 more digits

Gary E. Miller gitlab at mg.gitlab.com
Fri Jan 20 22:03:32 UTC 2017


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


Commits:
c8ec65ca by Gary E. Miller at 2017-01-20T14:02:17-08:00
mode 6: output clk_jitter and clk_wander to 3 more digits

The RasPi's are more accurate than the old output format.

- - - - -


1 changed file:

- ntpd/ntp_control.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
--- a/ntpd/ntp_control.c
+++ b/ntpd/ntp_control.c
@@ -1506,7 +1506,8 @@ ctl_putsys(
 		break;
 
 	case CS_ERROR:
-		ctl_putdbl(sys_var[CS_ERROR].text, clock_jitter * 1e3);
+		/* a.k.a clk_jitter (s).  output as us */
+		ctl_putdbl6(sys_var[CS_ERROR].text, clock_jitter * 1e3);
 		break;
 
 	case CS_CLOCK:
@@ -1531,7 +1532,8 @@ ctl_putsys(
 		break;
 
 	case CS_STABIL:
-		ctl_putdbl(sys_var[CS_STABIL].text, clock_stability *
+		/* a.k.a clk_wander (s/s), output as us/s */
+		ctl_putdbl6(sys_var[CS_STABIL].text, clock_stability *
 			   1e6);
 		break;
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c8ec65caa12b424eadc0742e6c56f529368a80f3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170120/1961792c/attachment.html>


More information about the vc mailing list