From 85599996a15a9bd6fd5da7b254640d44e32892c4 Mon Sep 17 00:00:00 2001 From: tunaichao Date: Tue, 8 Sep 2026 19:55:36 +0800 Subject: [PATCH] man: fix cgtop --recursive= and --cpu= documentation --recursive=no is not silently ignored when all tasks are counted, as claimed: cgtop rejects it with an error unless -P or -k is used, since task counting is always recursive. Also document that --cpu without an argument is equivalent to --cpu=time. --- man/systemd-cgtop.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/man/systemd-cgtop.xml b/man/systemd-cgtop.xml index d734ccd283..908d127570 100644 --- a/man/systemd-cgtop.xml +++ b/man/systemd-cgtop.xml @@ -135,8 +135,10 @@ Controls whether the CPU usage is shown as percentage or time. By default, the CPU usage is shown as - percentage. This setting may also be toggled at runtime by - pressing the % key. + percentage. When the option is used without an argument, it is + equivalent to . This setting may also + be toggled at runtime by pressing the % + key. @@ -186,8 +188,9 @@ pressing the r key. Note that this setting only applies to process counting, i.e. when the or options are - used. It has no effect if all tasks are counted, in which - case the counting is always recursive. + used. When all tasks are counted, setting this option to + no is rejected with an error, as task counting + is always recursive.