summaryrefslogtreecommitdiffstats
path: root/contrib/top/top.c
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/top.c
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/top.c')
-rw-r--r--contrib/top/top.c8
1 files changed, 2 insertions, 6 deletions
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