diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-24 12:23:40 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-24 12:23:40 +0000 |
commit | bc4f25d927077f33e59b81c2332c27a200642e4f (patch) | |
tree | db86c073366342d297f559f77dc0ab7dae4fab17 /usr.sbin/ntpd/ntp.c | |
parent | 20fceac37c1a322e86f956c818ec6c7d27718ef7 (diff) |
timedelta sensors are usually updated very often, but we used to query
them only every 30 seconds. now query them every 5,and take the median
value from 7 queries as sensor value. this takes outliers out of the
equation and makes the overall result much better, especially for
sensors with heavy jitter (like nmea for now)
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-rw-r--r-- | usr.sbin/ntpd/ntp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index aafba9aaacd..0c3f8d011e0 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.92 2006/10/21 07:30:58 henning Exp $ */ +/* $OpenBSD: ntp.c,v 1.93 2006/10/24 12:23:39 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -46,7 +46,6 @@ void ntp_sighdlr(int); int ntp_dispatch_imsg(void); void peer_add(struct ntp_peer *); void peer_remove(struct ntp_peer *); -int offset_compare(const void *, const void *); void ntp_sighdlr(int sig) |