summaryrefslogtreecommitdiffstats
path: root/contrib/top
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-06-21 15:48:16 +0000
committerru <ru@FreeBSD.org>2008-06-21 15:48:16 +0000
commit58967561b930a3295172a6290e459247c1765cf9 (patch)
treefb98738ee03bb1a86c0fd6f5c1c094425f22467f /contrib/top
parentf95442f594cc909711b0fc1b9e4b9f11c738ad3c (diff)
downloadFreeBSD-src-58967561b930a3295172a6290e459247c1765cf9.zip
FreeBSD-src-58967561b930a3295172a6290e459247c1765cf9.tar.gz
Removed the no-op -p; documented -P.
MFC after: 3 days
Diffstat (limited to 'contrib/top')
-rw-r--r--contrib/top/top.X5
-rw-r--r--contrib/top/top.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/contrib/top/top.X b/contrib/top/top.X
index acddde8..830e50d 100644
--- a/contrib/top/top.X
+++ b/contrib/top/top.X
@@ -10,7 +10,7 @@ top \- display and update information about the top cpu processes
.SH SYNOPSIS
.B top
[
-.B \-abCHIijnqStuv
+.B \-abCHIijnPqStuv
] [
.BI \-d count
] [
@@ -119,6 +119,9 @@ Display either 'cpu' or 'io' statistics. Default is 'cpu'.
Use \*(lqnon-interactive\*(rq mode. This is identical to \*(lqbatch\*(rq
mode.
.TP
+.B \-P
+Display per-cpu CPU usage statistics.
+.TP
.B \-q
Renice
.I top
diff --git a/contrib/top/top.c b/contrib/top/top.c
index 3fbd3a2..762efaa 100644
--- a/contrib/top/top.c
+++ b/contrib/top/top.c
@@ -283,7 +283,7 @@ char *argv[];
optind = 1;
}
- while ((i = getopt(ac, av, "CSIHPabijnpquvs:d:U:m:o:t")) != EOF)
+ while ((i = getopt(ac, av, "CSIHPabijnquvs:d:U:m:o:t")) != EOF)
{
switch(i)
{
@@ -412,14 +412,10 @@ char *argv[];
pcpu_stats = Yes;
break;
- case 'p':
- pcpu_stats = No;
- break;
-
default:
fprintf(stderr,
"Top version %s\n"
-"Usage: %s [-abCHIijnqStuv] [-d count] [-m io | cpu] [-o field] [-s time]\n"
+"Usage: %s [-abCHIijnPqStuv] [-d count] [-m io | cpu] [-o field] [-s time]\n"
" [-U username] [number]\n",
version_string(), myname);
exit(1);
OpenPOWER on IntegriCloud