diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-08 15:06:14 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-08 15:06:14 +0000 |
commit | ec7287d19d5374ecc8addc2409cfc05d51df7e71 (patch) | |
tree | 5df3186e62cc54d8b7df8155c91f0ab5016bd2a8 /usr.sbin/ntpd/ntp.c | |
parent | 597895484caef14e4592ca265749624f9486b596 (diff) |
remove a bogus always-true test before adjtime()
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-rw-r--r-- | usr.sbin/ntpd/ntp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index 947b3af256c..468d5503bd2 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.16 2004/07/08 01:21:09 henning Exp $ */ +/* $OpenBSD: ntp.c,v 1.17 2004/07/08 15:06:13 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -285,9 +285,8 @@ ntp_adjtime(struct ntpd_conf *conf) offset_median /= offset_cnt; - if (offset_median >= 0.001 || offset_median <= 0.001) - imsg_compose(&ibuf_main, IMSG_ADJTIME, 0, - &offset_median, sizeof(offset_median)); + imsg_compose(&ibuf_main, IMSG_ADJTIME, 0, + &offset_median, sizeof(offset_median)); } int |