diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index cd9b6297..02247970 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.26 2004/12/20 15:10:05 moritz Exp $ */ +/* $OpenBSD: ntpd.c,v 1.27 2004/12/22 16:04:11 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -306,7 +306,8 @@ ntpd_adjtime(double d) { struct timeval tv; - if (d >= (double)LOG_NEGLIGEE / 1000) + if (d >= (double)LOG_NEGLIGEE / 1000 || + d <= -1 * (double)LOG_NEGLIGEE / 1000) log_info("adjusting local clock by %fs", d); else log_debug("adjusting local clock by %fs", d);