diff options
author | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2009-08-14 15:29:20 +0000 |
---|---|---|
committer | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2009-08-14 15:29:20 +0000 |
commit | d7ae528f7fafd4681104bb8625a85652d7f822bd (patch) | |
tree | 1666b57d7cad68746622272daa265f5395a99e8c /usr.bin/systat/sensors.c | |
parent | 44b3e1edc8ebf54ca9581566180d195f526d7347 (diff) |
SENSOR_WATTS; ok canacar deraadt kettenis henning
Diffstat (limited to 'usr.bin/systat/sensors.c')
-rw-r--r-- | usr.bin/systat/sensors.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/systat/sensors.c b/usr.bin/systat/sensors.c index 33d02608f89..17a8df85639 100644 --- a/usr.bin/systat/sensors.c +++ b/usr.bin/systat/sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.c,v 1.17 2009/06/25 20:45:43 deraadt Exp $ */ +/* $OpenBSD: sensors.c,v 1.18 2009/08/14 15:29:19 cnst Exp $ */ /* * Copyright (c) 2007 Deanna Phillips <deanna@openbsd.org> @@ -227,6 +227,9 @@ showsensor(struct sensinfo *s) tbprintf("%10.2f V DC", s->sn_value / 1000000.0); break; + case SENSOR_WATTS: + tbprintf("%10.2f W", s->sn_value / 1000000.0); + break; case SENSOR_AMPS: tbprintf("%10.2f A", s->sn_value / 1000000.0); break; |