summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-10-12 10:41:52 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-10-12 10:41:52 +0000
commit1f4bf3fa4edee3198c88dc49abdbd630066c1f41 (patch)
tree69f79aaacd43467d37662ab0eff8a639b75d6e02 /usr.sbin
parent33a02dd2f4b11101536a54eca3baae40a4a649ec (diff)
need to call adjtime once in a while here too, otherwise sensor-only
servers never update the system clock
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/sensors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 4b635afa3ed..484f44e1350 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.22 2006/10/12 10:40:45 henning Exp $ */
+/* $OpenBSD: sensors.c,v 1.23 2006/10/12 10:41:51 henning Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -169,6 +169,8 @@ sensor_query(struct ntp_sensor *s)
s->update.status.reftime = sensor.tv.tv_sec;
s->update.status.synced = 1;
+ priv_adjtime();
+
log_debug("sensor %s: offset %f", s->device, s->update.offset);
}