summaryrefslogtreecommitdiffstats
path: root/src/cgtop
diff options
context:
space:
mode:
authorMaksim Melnikau <maxposedon@gmail.com>2013-03-29 13:55:50 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-29 15:42:47 +0100
commit813ac7d3dded660486e3b22b27929d78328e3ab3 (patch)
treefd0811e48fbc8e0751e60efdc887cd1c789fb209 /src/cgtop
parentAlways use errno > 0 to help gcc (diff)
downloadsystemd-813ac7d3dded660486e3b22b27929d78328e3ab3.tar.xz
systemd-813ac7d3dded660486e3b22b27929d78328e3ab3.zip
cgtop --help: default depth is 3 not 2
use default depth from variable for --help
Diffstat (limited to 'src/cgtop')
-rw-r--r--src/cgtop/cgtop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c
index f80d51efed..eebebf0333 100644
--- a/src/cgtop/cgtop.c
+++ b/src/cgtop/cgtop.c
@@ -522,8 +522,8 @@ static void help(void) {
" -d --delay=DELAY Specify delay\n"
" -n --iterations=N Run for N iterations before exiting\n"
" -b --batch Run in batch mode, accepting no input\n"
- " --depth=DEPTH Maximum traversal depth (default: 2)\n",
- program_invocation_short_name);
+ " --depth=DEPTH Maximum traversal depth (default: %d)\n",
+ program_invocation_short_name, arg_depth);
}
static void version(void) {