summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2008-09-23 05:56:15 +0000
committerHisham Muhammad <hisham@gobolinux.org>2008-09-23 05:56:15 +0000
commitc3550e18e8f3cdc1e66599b01d15ba005515312b (patch)
tree981d0c8b3a891c2f3ac80a7f9e6f2a405782d30e /ProcessList.c
parenta5dfaa23932a6bac1463dda677a51cfc37928ba4 (diff)
Avoid reading process IO info multiple times on multithreaded processes.
Bugfix from Gerhard Heift.
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 13a7adcd..82ff6efb 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -565,10 +565,6 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
process->tgid = parent->pid;
}
- #ifdef HAVE_TASKSTATS
- ProcessList_readIoFile(this, process, dirname, name);
- #endif
-
if (showUserlandThreads && (!parent || pid != parent->pid)) {
char subdirname[MAX_NAME+1];
snprintf(subdirname, MAX_NAME, "%s/%s/task", dirname, name);
@@ -577,6 +573,10 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
continue;
}
+ #ifdef HAVE_TASKSTATS
+ ProcessList_readIoFile(this, process, dirname, name);
+ #endif
+
process->updated = true;
if (!existingProcess)

© 2014-2024 Faster IT GmbH | imprint | privacy policy