[Git][NTPsec/ntpsec][master] ntpd: don't put an arbitrary floor on the jitter.
Gary E. Miller
gitlab at mg.gitlab.com
Fri Nov 4 22:48:20 UTC 2016
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
5bb31a22 by Gary E. Miller at 2016-11-04T15:47:25-07:00
ntpd: don't put an arbitrary floor on the jitter.
zero is a perfectly good number.
- - - - -
1 changed file:
- ntpd/ntp_refclock.c
Changes:
=====================================
ntpd/ntp_refclock.c
=====================================
--- a/ntpd/ntp_refclock.c
+++ b/ntpd/ntp_refclock.c
@@ -482,7 +482,7 @@ refclock_sample(
pp->jitter += SQUARE(off[k] - off[k - 1]);
}
pp->offset /= m;
- pp->jitter = max(SQRT(pp->jitter / m), LOGTOD(sys_precision));
+ pp->jitter = SQRT(pp->jitter / m);
#ifdef DEBUG
if (debug)
printf(
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5bb31a22698da5e2479e38fce68ee709565c45ba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161104/c467529f/attachment.html>
More information about the vc
mailing list