summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-10-15 06:59:33 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-10-15 06:59:33 +0000
commit1f9c5acd427df3289f50f6be40ba26bdb55c935c (patch)
treeac3c8013cf59309fad7569017ef295eb65bca4ef /usr.sbin/ntpd/ntpd.h
parent233ca8fd56863d034483781261d9fb419be9cbab (diff)
Allow ntpd to report the status of peers and sensors to syslog. This
happens when a SIGINFO is received, or when the majority of peers or sensors is bad. The latter with a maximum of once per 24 hour. ok henning@ ckuethe@ mbalmer@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r--usr.sbin/ntpd/ntpd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index 1ab2ffa3ed1..73c017526b6 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.87 2007/09/13 14:34:36 pyr Exp $ */
+/* $OpenBSD: ntpd.h,v 1.88 2007/10/15 06:59:32 otto Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -61,6 +61,7 @@
#define LOG_NEGLIGEE 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 */
#define SENSOR_DATA_MAXAGE (15*60)