mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
Removed the no-op -p; documented -P.
MFC after: 3 days
This commit is contained in:
parent
c94b8307db
commit
cd83aa9707
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179911
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user