diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-10-23 13:53:10 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-10-23 13:53:10 +0000 |
commit | 6404af5bce72dc2221ebb9a740f9f9bd06e65762 (patch) | |
tree | e659fccda3649d110c83d40a160df23c84ece53b /sbin/sysctl/sysctl.c | |
parent | 554ca7d71c6e1edd18adf82cf242a405a5acf550 (diff) |
Add support for SENSOR_AMPS.
ok dlg@
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-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; |