From 153642fa72765f092b7f13b4317dc1e48c7ab890 Mon Sep 17 00:00:00 2001 From: henning <> Date: Thu, 12 Oct 2006 10:41:51 +0000 Subject: [PATCH] need to call adjtime once in a while here too, otherwise sensor-only servers never update the system clock --- src/usr.sbin/ntpd/sensors.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/sensors.c b/src/usr.sbin/ntpd/sensors.c index 4b635afa..484f44e1 100644 --- a/src/usr.sbin/ntpd/sensors.c +++ b/src/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 @@ -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); }