summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorAdam Saponara <as@php.net>2020-10-31 20:36:53 -0400
committerAdam Saponara <as@php.net>2020-10-31 20:36:53 -0400
commita83f515f0fb75a079601be0d2e0e24b9402c9e15 (patch)
tree6985bc794500e9c0bd3351df4b6b530550f935e6 /htop.c
parentdde71c6637905e1707bd1020c93e930f4b0a480b (diff)
Address items from review
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/htop.c b/htop.c
index 351f5867..48c6f8d0 100644
--- a/htop.c
+++ b/htop.c
@@ -50,14 +50,14 @@ static void printHelpFlag(void) {
"-d --delay=DELAY Set the delay between updates, in tenths of seconds\n"
"-F --filter=FILTER Show only the commands matching the given filter\n"
"-h --help Print this help screen\n"
+ "-H --highlight-changes[=DELAY] Highlight new and old processes\n"
"-M --no-mouse Disable the mouse\n"
- "-p --pid=PID,[,PID,PID...] Show only the given PIDs\n"
+ "-p --pid=PID[,PID,PID...] Show only the given PIDs\n"
"-s --sort-key=COLUMN Sort by COLUMN (try --sort-key=help for a list)\n"
"-t --tree Show the tree view by default\n"
"-u --user[=USERNAME] Show only processes for a given user (or $USER)\n"
"-U --no-unicode Do not use unicode but plain ASCII\n"
"-V --version Print version info\n"
- "-H --highlight-changes[=DELAY] Highlight new and old processes\n"
"\n"
"Long options may be passed with a single dash.\n\n"
"Press F1 inside htop for online help.\n"
@@ -212,7 +212,8 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
}
if (delay) {
if (sscanf(delay, "%16d", &(flags.highlightDelaySecs)) == 1) {
- if (flags.highlightDelaySecs < 1) flags.highlightDelaySecs = 1;
+ if (flags.highlightDelaySecs < 1)
+ flags.highlightDelaySecs = 1;
} else {
fprintf(stderr, "Error: invalid highlight delay value \"%s\".\n", delay);
exit(1);

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