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.
This commit is contained in:
tunaichao
2026-09-08 15:34:58 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 1162e03e5d
commit 85599996a1
+7 -4
View File
@@ -135,8 +135,10 @@
<listitem><para>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 <keycap>%</keycap> key.</para>
percentage. When the option is used without an argument, it is
equivalent to <option>--cpu=time</option>. This setting may also
be toggled at runtime by pressing the <keycap>%</keycap>
key.</para>
<xi:include href="version-info.xml" xpointer="v226"/></listitem>
</varlistentry>
@@ -186,8 +188,9 @@
pressing the <keycap>r</keycap> key. Note that this setting
only applies to process counting, i.e. when the
<option>-P</option> or <option>-k</option> options are
used. It has no effect if all tasks are counted, in which
case the counting is always recursive.</para>
used. When all tasks are counted, setting this option to
<literal>no</literal> is rejected with an error, as task counting
is always recursive.</para>
<xi:include href="version-info.xml" xpointer="v226"/></listitem>
</varlistentry>