From 72dbb72b68f7bdc53aecb7648af75e848cec0251 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 26 Nov 2010 16:51:20 +0000 Subject: [PATCH] All processes where showing as belonging to 'root'. Fixed. Thanks to Sven Hartrumpf for pointing this out in htop-0.9-rc2 --- ProcessList.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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