* 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 <vk1et@tpg.com.au>
ChangeLog, aclocal.m4, configure, configure.in:
* configure.in: 4.0.99k40
bk: 3b11ae9dTS8WBsPXSyt7aI7A7-M7wA
2001-05-27 Harlan Stenn <stenn@whimsy.udel.edu>
+ * 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 <vk1et@tpg.com.au>
+
* ntpd/refclock_true.c:
a. Don't cream pp->a_lastcode when we get a <cr><lf> pair
b. Fix up pp->leap handling to work correctly
# Define the identity of the package.
PACKAGE=ntp
-VERSION=4.0.99k39
+VERSION=4.0.99k40
cat >>confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
AC_DEFINE_UNQUOTED(STR_SYSTEM, "$target")
AM_CONFIG_HEADER(config.h)
AC_ARG_PROGRAM
-AM_INIT_AUTOMAKE(ntp, 4.0.99k39)
+AM_INIT_AUTOMAKE(ntp, 4.0.99k40)
AC_PREREQ(2.49)
ac_cv_var_oncore_ok=no
#define BSD_TTYS
#endif /* SYSV_TTYS STREAM BSD_TTYS */
-#define SAMPLE(x) if ((pp->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