diff options
author | roberto <roberto@FreeBSD.org> | 2001-08-29 14:35:15 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2001-08-29 14:35:15 +0000 |
commit | 40b8e415eb0f835a9dd7a473ddf134ec67877fd7 (patch) | |
tree | 3cfb63f1a112ee17469b17fc1593a88d004ddda6 /contrib/ntp/include/ntp_refclock.h | |
parent | a5a8dc6136fcee95f261a31609a25669038c3861 (diff) | |
download | FreeBSD-src-40b8e415eb0f835a9dd7a473ddf134ec67877fd7.zip FreeBSD-src-40b8e415eb0f835a9dd7a473ddf134ec67877fd7.tar.gz |
Virgin import of ntpd 4.1.0
Diffstat (limited to 'contrib/ntp/include/ntp_refclock.h')
-rw-r--r-- | contrib/ntp/include/ntp_refclock.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/ntp/include/ntp_refclock.h b/contrib/ntp/include/ntp_refclock.h index fd1d080..3995e9a 100644 --- a/contrib/ntp/include/ntp_refclock.h +++ b/contrib/ntp/include/ntp_refclock.h @@ -29,12 +29,14 @@ #include <sys/modem.h> #endif +#if 0 /* If you need that, include ntp_io.h instead */ #if defined(STREAM) #include <stropts.h> -#if defined(CLK) +#if defined(CLK) /* This is never defined, except perhaps by a system header file */ #include <sys/clkdefs.h> #endif /* CLK */ #endif /* STREAM */ +#endif #include "recvbuff.h" @@ -42,10 +44,9 @@ #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 @@ -195,7 +196,7 @@ struct refclockproc { l_fp lastrec; /* local timestamp */ double offset; /* mean offset */ double disp; /* sample dispersion */ - double variance; /* sample variance */ + double jitter; /* jitter (mean squares) */ double filter[MAXSTAGE]; /* median filter */ /* |