]> git.ipfire.org Git - thirdparty/chrony.git/commit
refclock: split off median filter
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Aug 2018 13:15:36 +0000 (15:15 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Aug 2018 15:21:02 +0000 (17:21 +0200)
commitc498c21fad35173d748e8a70affd8044ec5ad0c5
treed184cd87f1c0a9d173ae001c1283ec86e44bdfab
parent6bef8aa0e92b726bd42a8a11cb3fc5f56d1b0377
refclock: split off median filter

Move the implementation of the median filter to a separate file to make
it useful for NTP. Replace some constants with parameters and generalize
the code to work with full NTP samples (including root dispersion/delay,
stratum, and leap).

For refclocks it should give the same results as before.
Makefile.in
refclock.c
samplefilt.c [new file with mode: 0644]
samplefilt.h [new file with mode: 0644]