From: Harlan Stenn Date: Mon, 28 May 2001 01:49:17 +0000 (-0000) Subject: ChangeLog, ntp_refclock.h: X-Git-Tag: NTP_4_0_99_M~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=397db02b7503eafed5e4c0c33a8cef2a4339a9ad;p=thirdparty%2Fntp.git ChangeLog, ntp_refclock.h: * include/ntp_refclock.h: Median Filter (SAMPLE - macro) - change to use most recent MAXSTAGE entries when the filter overflows (ie driver poking say once per second with poll > MAXSTAGE) rather than blocking after MAXSTAGE entries (turf oldest rather than turf most recent). From: John Woolner ChangeLog, aclocal.m4, configure, configure.in: * configure.in: 4.0.99k40 bk: 3b11ae9dTS8WBsPXSyt7aI7A7-M7wA --- diff --git a/ChangeLog b/ChangeLog index cee7d4e4c..aab55a4e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2001-05-27 Harlan Stenn + * configure.in: 4.0.99k40 + + * include/ntp_refclock.h: Median Filter (SAMPLE - macro) - change + to use most recent MAXSTAGE entries when the filter overflows (ie + driver poking say once per second with poll > MAXSTAGE) rather + than blocking after MAXSTAGE entries (turf oldest rather than turf + most recent). + From: John Woolner + * ntpd/refclock_true.c: a. Don't cream pp->a_lastcode when we get a pair b. Fix up pp->leap handling to work correctly diff --git a/configure b/configure index 4c98c6722..f42908061 100755 --- a/configure +++ b/configure @@ -1377,7 +1377,7 @@ fi # Define the identity of the package. PACKAGE=ntp -VERSION=4.0.99k39 +VERSION=4.0.99k40 cat >>confdefs.h <coderecv + 1) % MAXSTAGE != \ - pp->codeproc % MAXSTAGE) \ - pp->filter[pp->coderecv++ % MAXSTAGE] = \ - (x); +#define SAMPLE(x) pp->filter[pp->coderecv++ % MAXSTAGE] = (x); \ + if (pp->coderecv % MAXSTAGE == pp->codeproc % MAXSTAGE) \ + pp->codeproc++; /* * Macros to determine the clock type and unit numbers from a