summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorckuethe <ckuethe@openbsd.org>2009-06-06 18:45:01 +0000
committerckuethe <ckuethe@openbsd.org>2009-06-06 18:45:01 +0000
commitaea74eab75f8db24879053c6dfae0190bd388e7c (patch)
tree73300c591480be56f89d6bbaaec41954d017a603
parentthis one missed the last batch. (diff)
downloadwireguard-openbsd-aea74eab75f8db24879053c6dfae0190bd388e7c.tar.xz
wireguard-openbsd-aea74eab75f8db24879053c6dfae0190bd388e7c.zip
Turns up the polling rate of sensors and makes ntpd calculate frequency
corrections more often. Due to physical effects crystal oscillators aren't really stable beyond 1000s or so - at least not the kind found in pc's. ok henning
-rw-r--r--usr.sbin/ntpd/ntpd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index d9783babc21..9546bb33442 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.102 2009/06/06 18:14:25 pyr Exp $ */
+/* $OpenBSD: ntpd.h,v 1.103 2009/06/06 18:45:01 ckuethe Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -52,7 +52,7 @@
#define QUERYTIME_MAX 15 /* single query might take n secs max */
#define OFFSET_ARRAY_SIZE 8
-#define SENSOR_OFFSETS 7
+#define SENSOR_OFFSETS 6
#define SETTIME_TIMEOUT 15 /* max seconds to wait with -s */
#define LOG_NEGLIGIBLE_ADJTIME 32 /* negligible drift to not log (ms) */
#define LOG_NEGLIGIBLE_ADJFREQ 0.05 /* negligible rate to not log (ppm) */
@@ -64,7 +64,7 @@
#define FILTER_ADJFREQ 0x01 /* set after doing adjfreq */
#define SENSOR_DATA_MAXAGE (15*60)
-#define SENSOR_QUERY_INTERVAL 30
+#define SENSOR_QUERY_INTERVAL 15
#define SENSOR_QUERY_INTERVAL_SETTIME (SETTIME_TIMEOUT/3)
#define SENSOR_SCAN_INTERVAL (5*60)