summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-11-26 16:51:20 +0000
committerHisham Muhammad <hisham@gobolinux.org>2010-11-26 16:51:20 +0000
commit72dbb72b68f7bdc53aecb7648af75e848cec0251 (patch)
treef466dda0974ea88cb940850f748dced8b80af3f1 /ProcessList.c
parent4367e64b1d093fe6e93c5fe81c06952d9f66038c (diff)
All processes where showing as belonging to 'root'. Fixed.
Thanks to Sven Hartrumpf for pointing this out in htop-0.9-rc2
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 76944b21..c2343576 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -601,11 +601,12 @@ static bool ProcessList_processEntries(ProcessList* this, const char* dirname, P
process->percent_mem = (process->m_resident * PAGE_SIZE_KB) / (float)(this->totalMem) * 100.0;
if(!existingProcess) {
- process->user = UsersTable_getRef(this->usersTable, process->st_uid);
if (! ProcessList_statProcessDir(process, dirname, name))
goto errorReadingProcess;
+ process->user = UsersTable_getRef(this->usersTable, process->st_uid);
+
#ifdef HAVE_OPENVZ
ProcessList_readOpenVZData(process, dirname, name);
#endif

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