diff options
author | 2005-10-23 13:53:09 +0000 | |
---|---|---|
committer | 2005-10-23 13:53:09 +0000 | |
commit | 29423301c25d85fdd59723de51720efda2ee9383 (patch) | |
tree | ee3bcf1cfffde29b335c66c50da44c620b0c4c4c | |
parent | Document units. (diff) | |
download | wireguard-openbsd-29423301c25d85fdd59723de51720efda2ee9383.tar.xz wireguard-openbsd-29423301c25d85fdd59723de51720efda2ee9383.zip |
Add support for SENSOR_AMPS.
ok dlg@
-rw-r--r-- | sbin/sysctl/sysctl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index d821d099a23..6343938ce95 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.128 2005/08/05 03:07:40 dlg Exp $ */ +/* $OpenBSD: sysctl.c,v 1.129 2005/10/23 13:53:09 kettenis Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.128 2005/08/05 03:07:40 dlg Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.129 2005/10/23 13:53:09 kettenis Exp $"; #endif #endif /* not lint */ @@ -2149,6 +2149,9 @@ print_sensor(struct sensor *s) case SENSOR_VOLTS_DC: printf("volts_dc, %.2f V", s->value / 1000000.0); break; + case SENSOR_AMPS: + printf("amps, %.2f A", s->value / 1000000.0); + break; case SENSOR_INDICATOR: printf("indicator, %s", s->value ? "On" : "Off"); break; |