Removed the no-op -p; documented -P.

MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2008-06-21 15:48:16 +00:00
parent c94b8307db
commit cd83aa9707
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179911
2 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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);