summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/mib.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-04-20 19:44:08 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-04-20 19:44:08 +0000
commit5d969c87da08e829262bfe79882db0853b92f1ed (patch)
treef456438411ad14c3997c9063058b48055b6a547f /usr.sbin/snmpd/mib.c
parent1c85972a7a3ee7cb8be67f39e99aadb52d593c74 (diff)
Add "frequency" type for sensors. (and teach userland how to print that
type). Measured in Hz. ok deraadt@
Diffstat (limited to 'usr.sbin/snmpd/mib.c')
-rw-r--r--usr.sbin/snmpd/mib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c
index 7af24262200..9a8cdb2dd51 100644
--- a/usr.sbin/snmpd/mib.c
+++ b/usr.sbin/snmpd/mib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.c,v 1.36 2010/04/15 04:57:29 yuo Exp $ */
+/* $OpenBSD: mib.c,v 1.37 2010/04/20 19:44:07 oga Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net>
@@ -1392,6 +1392,7 @@ mib_sensorvalue(struct sensor *s)
/* FALLTHROUGH */
case SENSOR_FANRPM:
case SENSOR_INTEGER:
+ case SENSOR_FREQ:
default:
ret = asprintf(&v, "%lld", s->value);
break;