All processes where showing as belonging to 'root'. Fixed.

Thanks to Sven Hartrumpf for pointing this out in htop-0.9-rc2
This commit is contained in:
Hisham Muhammad 2010-11-26 16:51:20 +00:00
parent 4367e64b1d
commit 72dbb72b68
1 changed files with 2 additions and 1 deletions

View File

@ -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; process->percent_mem = (process->m_resident * PAGE_SIZE_KB) / (float)(this->totalMem) * 100.0;
if(!existingProcess) { if(!existingProcess) {
process->user = UsersTable_getRef(this->usersTable, process->st_uid);
if (! ProcessList_statProcessDir(process, dirname, name)) if (! ProcessList_statProcessDir(process, dirname, name))
goto errorReadingProcess; goto errorReadingProcess;
process->user = UsersTable_getRef(this->usersTable, process->st_uid);
#ifdef HAVE_OPENVZ #ifdef HAVE_OPENVZ
ProcessList_readOpenVZData(process, dirname, name); ProcessList_readOpenVZData(process, dirname, name);
#endif #endif