diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2008-03-08 23:39:48 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2008-03-08 23:39:48 +0000 |
commit | 93f091c47e54f8d5d150770a687c4cc76761c954 (patch) | |
tree | e789f43adeaa3e77e789d639703dab082bcc6e09 /ProcessList.h | |
parent | 52840406ac85943d47ed9311be8db86eedc1ea7a (diff) |
BUGFIX: Fix display of CPU count for threaded processes.
When user threads are hidden, process now shows the
sum of processor usage for all processors. When user
threads are displayed, each thread shows its own
processor usage, including the root thread.
(thanks to Bert Wesarg for the report)
Also, add option to display thread colors differently.
Diffstat (limited to 'ProcessList.h')
-rw-r--r-- | ProcessList.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ProcessList.h b/ProcessList.h index 578edb9e..34bdc46e 100644 --- a/ProcessList.h +++ b/ProcessList.h @@ -119,6 +119,7 @@ typedef struct ProcessList_ { bool treeView; bool highlightBaseName; bool highlightMegabytes; + bool highlightThreads; bool detailedCPUTime; #ifdef DEBUG_PROC FILE* traceFile; @@ -164,7 +165,7 @@ void ProcessList_sort(ProcessList* this); bool ProcessList_readStatusFile(ProcessList* this, Process* proc, char* dirname, char* name); -void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, float period); +bool ProcessList_processEntries(ProcessList* this, char* dirname, Process* parent, float period); void ProcessList_scan(ProcessList* this); |