Browse Source

rename a #define to be clearer; no binary change

ok henning@
OPENBSD_4_5
stevesk 16 years ago
parent
commit
d48f49351f
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/usr.sbin/ntpd/ntpd.c
  2. +2
    -2
      src/usr.sbin/ntpd/ntpd.h

+ 3
- 3
src/usr.sbin/ntpd/ntpd.c View File

@ -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 <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -362,8 +362,8 @@ ntpd_adjtime(double d)
static int firstadj = 1; static int firstadj = 1;
d += getoffset(); 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); log_info("adjusting local clock by %fs", d);
else else
log_debug("adjusting local clock by %fs", d); log_debug("adjusting local clock by %fs", d);


+ 2
- 2
src/usr.sbin/ntpd/ntpd.h View File

@ -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 <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -55,7 +55,7 @@
#define OFFSET_ARRAY_SIZE 8 #define OFFSET_ARRAY_SIZE 8
#define SENSOR_OFFSETS 7 #define SENSOR_OFFSETS 7
#define SETTIME_TIMEOUT 15 /* max seconds to wait with -s */ #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 FREQUENCY_SAMPLES 8 /* samples for est. of permanent drift */
#define MAX_FREQUENCY_ADJUST 128e-5 /* max correction per iteration */ #define MAX_FREQUENCY_ADJUST 128e-5 /* max correction per iteration */
#define REPORT_INTERVAL (24*60*60) /* interval between status reports */ #define REPORT_INTERVAL (24*60*60) /* interval between status reports */


Loading…
Cancel
Save