summaryrefslogtreecommitdiffstats
path: root/contrib/top/machine.h
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2005-05-18 13:30:08 +0000
committerkeramida <keramida@FreeBSD.org>2005-05-18 13:30:08 +0000
commit0f9725e09b1113e803b8655641b23fbe9c5e7719 (patch)
tree42f2b2a54bba39dc0ab8b8514eefae075556a375 /contrib/top/machine.h
parent4bf80fbbcff1c8b9d5088dd0d5195293ee0f09da (diff)
downloadFreeBSD-src-0f9725e09b1113e803b8655641b23fbe9c5e7719.zip
FreeBSD-src-0f9725e09b1113e803b8655641b23fbe9c5e7719.tar.gz
Merge the CPU and WCPU columns in a single %6.2f column, add a new 'C'
command that toggles between the two and update the ORDER_PCTCPU() macro to sort correctly by the visible "cpu" value. This saves 6 more columns in 80-column terminals, making things a lot better for the COMMAND column. Tested on: i386, sparc64 (panther), amd64 (sledge) Approved by: davidxu (in principle)
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r--contrib/top/machine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h
index 62b321c..17e48cd 100644
--- a/contrib/top/machine.h
+++ b/contrib/top/machine.h
@@ -61,6 +61,7 @@ struct process_select
int system; /* show system processes */
int thread; /* show threads */
int uid; /* only this uid (unless uid == -1) */
+ int wcpu; /* show weighted cpu */
char *command; /* only this command (unless == NULL) */
};
OpenPOWER on IntegriCloud