summaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2009-08-14 15:29:20 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2009-08-14 15:29:20 +0000
commitd7ae528f7fafd4681104bb8625a85652d7f822bd (patch)
tree1666b57d7cad68746622272daa265f5395a99e8c /usr.bin/systat
parent44b3e1edc8ebf54ca9581566180d195f526d7347 (diff)
SENSOR_WATTS; ok canacar deraadt kettenis henning
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/sensors.c5
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;