Commit 5e1c339b authored by jim warner's avatar jim warner Committed by Craig Small

top: speed up the collapsed children forest view logic

In forest view mode, once a collapsible parent process
and all of its children (if any) have been identified,
there is no longer a need to scan the remaining tasks.

So this patch will just force a new scan for any other
'Hide_pid' entries which might remain to be identified
after a targeted parent has been completely processed.
Signed-off-by: jim warner's avatarJim Warner <>
parent cfe5b38a
...@@ -4800,6 +4800,8 @@ static void forest_create (WIN_t *q) { ...@@ -4800,6 +4800,8 @@ static void forest_create (WIN_t *q) {
} }
// children found (and collapsed), so mark that puppy // children found (and collapsed), so mark that puppy
if (children) Tree_ppt[parent]->pad_2 = 'x'; if (children) Tree_ppt[parent]->pad_2 = 'x';
// this will force a check of the next Hide_pid, if any
j = Frame_maxtask;
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment