diff options
-rw-r--r-- | ProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c index 160c05b4..5f5151f6 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -164,7 +164,7 @@ static void ProcessList_buildTree(ProcessList* this, pid_t pid, int level, int i for (int i = Vector_size(this->processes) - 1; i >= 0; i--) { Process* process = (Process*) (Vector_get(this->processes, i)); - if (process->tgid == pid || (process->tgid == process->pid && process->ppid == pid)) { + if (process->show && (process->tgid == pid || (process->tgid == process->pid && process->ppid == pid))) { process = (Process*) (Vector_take(this->processes, i)); Vector_add(children, process); } |