summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/sensors.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 1058a341c69..79f6da922be 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.30 2007/01/15 08:19:11 otto Exp $ */
+/* $OpenBSD: sensors.c,v 1.31 2007/01/15 19:58:49 henning Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -76,6 +76,10 @@ sensor_probe(int devid, char *dxname, struct sensor *sensor)
log_warn("sensor_probe sysctl");
return (0);
}
+
+ if (sensordev.maxnumt[SENSOR_TIMEDELTA] == 0)
+ return (0);
+
strlcpy(dxname, sensordev.xname, MAXDEVNAMLEN);
slen = sizeof(*sensor);