diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-17 09:22:44 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-17 09:22:44 +0000 |
commit | a9c4f352efd1523775fecaba93d3349f9b2e20d8 (patch) | |
tree | fadb2f08c7cc17594c938190c085c996e6c047ba /usr.bin/top/machine.c | |
parent | 2f86b966265210f55e237eb49ff2f0d073c8d726 (diff) |
off-by-one in process_states[], fixes display of memory; ok deraadt, aaron
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 49aa0ebbcc8..e8cec6785a4 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.44 2004/10/07 06:26:12 otto Exp $ */ +/* $OpenBSD: machine.c,v 1.45 2004/11/17 09:22:43 markus Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com> @@ -101,10 +101,10 @@ static long cp_old[CPUSTATES]; static long cp_diff[CPUSTATES]; /* these are for detailing the process states */ -int process_states[7]; +int process_states[8]; char *procstatenames[] = { "", " starting, ", " running, ", " idle, ", - " stopped, ", " zombie, ", + " stopped, ", " zombie, ", "dead, ", " on processor, ", NULL }; |