diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index dbab4a44..5459777d 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.62 2009/01/29 00:06:04 stevesk Exp $ */ +/* $OpenBSD: ntpd.c,v 1.63 2009/02/06 21:48:00 stevesk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -362,8 +362,8 @@ ntpd_adjtime(double d) static int firstadj = 1; d += getoffset(); - if (d >= (double)LOG_NEGLIGEE / 1000 || - d <= -1 * (double)LOG_NEGLIGEE / 1000) + if (d >= (double)LOG_NEGLIGIBLE_ADJTIME / 1000 || + d <= -1 * (double)LOG_NEGLIGIBLE_ADJTIME / 1000) log_info("adjusting local clock by %fs", d); else log_debug("adjusting local clock by %fs", d); diff --git a/src/usr.sbin/ntpd/ntpd.h b/src/usr.sbin/ntpd/ntpd.h index b4785770..cd182569 100644 --- a/src/usr.sbin/ntpd/ntpd.h +++ b/src/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.96 2008/09/12 10:46:09 henning Exp $ */ +/* $OpenBSD: ntpd.h,v 1.97 2009/02/06 21:48:00 stevesk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -55,7 +55,7 @@ #define OFFSET_ARRAY_SIZE 8 #define SENSOR_OFFSETS 7 #define SETTIME_TIMEOUT 15 /* max seconds to wait with -s */ -#define LOG_NEGLIGEE 32 /* negligible drift to not log (ms) */ +#define LOG_NEGLIGIBLE_ADJTIME 32 /* negligible drift to not log (ms) */ #define FREQUENCY_SAMPLES 8 /* samples for est. of permanent drift */ #define MAX_FREQUENCY_ADJUST 128e-5 /* max correction per iteration */ #define REPORT_INTERVAL (24*60*60) /* interval between status reports */