summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-09-08 04:47:48 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-09-08 04:47:48 +0000
commitd07b043ee07caa5da9e93a5a2ca9165ff98f85d7 (patch)
tree1224462d5b27fbcca64d90d408b239cc1cc21cfe /htop.c
parentbb3e773c4958e76005915e3fd0c4b3a3c51ed941 (diff)
Fix --sort-key=help
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 5d0fa61c..003e3cd0 100644
--- a/htop.c
+++ b/htop.c
@@ -295,7 +295,7 @@ int main(int argc, char** argv) {
printVersionFlag();
break;
case 's':
- if (strcmp(optarg, "help")) {
+ if (strcmp(optarg, "help") == 0) {
for (int j = 1; j < LAST_PROCESSFIELD; j++)
printf ("%s\n", Process_fieldNames[j]);
exit(0);

© 2014-2024 Faster IT GmbH | imprint | privacy policy