diff options
author | peter <peter@FreeBSD.org> | 2008-01-18 01:43:14 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2008-01-18 01:43:14 +0000 |
commit | 368d76456bba0368457c8068937a2ba4ea81033e (patch) | |
tree | 75cd88d63d25954bc6c8db1fe30b1e7fa9322f7e /contrib/top/machine.h | |
parent | f99e03f7fe903970489c85fbae5965ef79f8d6c5 (diff) | |
download | FreeBSD-src-368d76456bba0368457c8068937a2ba4ea81033e.zip FreeBSD-src-368d76456bba0368457c8068937a2ba4ea81033e.tar.gz |
Add a -P flag to display per-cpu cpu usage stats.
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r-- | contrib/top/machine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h index 10c69ca..4584650 100644 --- a/contrib/top/machine.h +++ b/contrib/top/machine.h @@ -20,6 +20,7 @@ struct statics #ifdef ORDER char **order_names; #endif + int ncpus; }; /* @@ -43,6 +44,8 @@ struct system_info int *memory; int *swap; struct timeval boottime; + unsigned long cpumask; /* bitfield of cpu states represented */ + int ncpus; }; /* cpu_states is an array of percentages * 10. For example, |