]> granicus.if.org Git - procps-ng/commit
top: ensure collapsed children cpu reported accurately
authorJim Warner <james.warner@comcast.net>
Wed, 18 Jul 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 1 Aug 2018 11:27:44 +0000 (21:27 +1000)
commit4a44f9e3fa966476a142d134e4af677965953f9c
tree66285605790790b7b5cecc81e823c7d6dbe0ea7a
parent786bffc25399e2b64d2a5ad2203faf71b9bfaac3
top: ensure collapsed children cpu reported accurately

Parent tasks with collapsed children should have their
cpu reflect any unseen tasks only under the following:

1) When built without TREE_VCPUOFF having been defined

2) Exclusively when 'Show_FOREST' display mode was set

3) And only under the current window when in alternate
display mode (except if TREE_VWINALL has been defined)

So, this commit just ensures these objectives are met.

Reference(s):
. issue that began odyssey
https://gitlab.com/procps-ng/procps/issues/99
. original cpu implementation
commit 3da7318683d2fea10526384e0a4368a378b486a5

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c