Add frequency correction support. The drift factor is currently
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 22 Apr 2005 08:35:04 +0000 (08:35 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 22 Apr 2005 08:35:04 +0000 (08:35 +0000)
commit8ac9947b879bf644a2713cc7992beaa824425e00
tree2ef9133a13c807c0729c7d62b4efd007943ccf4f
parenta8ed16819533548dc0612e009f2f67304fd69586
Add frequency correction support. The drift factor is currently
determined via linear regression of the last 8 offset corrections.
It is bound to 128 ppm in one step to avoid extreme drifts when
the drift calculation is incorrect for some reason. With the
default values this can result in a maximum wrong drift of
8 * 60 * 8 * 128e-6 s ~= 0.5s (samples per update, update interval,
samples to trigger drift correction, max. drift error) until the
next iteration is done.
usr.sbin/ntpd/patches/ntp.c.patch
usr.sbin/ntpd/patches/ntpd.c.patch
usr.sbin/ntpd/patches/ntpd.h.patch