diff options
author | Deanna Phillips <deanna@cvs.openbsd.org> | 2007-02-23 22:02:59 +0000 |
---|---|---|
committer | Deanna Phillips <deanna@cvs.openbsd.org> | 2007-02-23 22:02:59 +0000 |
commit | 29e3846fc1f8f320a97e9a958f03765bcc4cd30e (patch) | |
tree | b2b17523a1ccc382b35aee72f2106996d352d540 /usr.bin/systat/cmdtab.c | |
parent | c5ed5e8b2135e8e4bac71f9e778f11c05c360227 (diff) |
Add a display for hardware sensors, available with :sensors.
ok deraadt, jmc
Diffstat (limited to 'usr.bin/systat/cmdtab.c')
-rw-r--r-- | usr.bin/systat/cmdtab.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/systat/cmdtab.c b/usr.bin/systat/cmdtab.c index 0f77e0214ef..29fc3db1170 100644 --- a/usr.bin/systat/cmdtab.c +++ b/usr.bin/systat/cmdtab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmdtab.c,v 1.7 2004/11/16 09:52:33 markus Exp $ */ +/* $OpenBSD: cmdtab.c,v 1.8 2007/02/23 22:02:58 deanna Exp $ */ /* $NetBSD: cmdtab.c,v 1.2 1995/01/20 08:51:51 jtc Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: cmdtab.c,v 1.7 2004/11/16 09:52:33 markus Exp $"; +static char rcsid[] = "$OpenBSD: cmdtab.c,v 1.8 2007/02/23 22:02:58 deanna Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -65,6 +65,9 @@ struct cmdtab cmdtab[] = { { "ifstat", showifstat, fetchifstat, labelifstat, initifstat, openifstat, closeifstat, cmdifstat, CF_LOADAV }, + { "sensors", showsensors, fetchsensors, labelsensors, + initsensors, opensensors, closesensors, 0, + CF_LOADAV }, { 0 } }; struct cmdtab *curcmd = &cmdtab[0]; |