Commit 72dbb72b authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

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

Thanks to Sven Hartrumpf for pointing this out in htop-0.9-rc2
parent 4367e64b
...@@ -601,11 +601,12 @@ static bool ProcessList_processEntries(ProcessList* this, const char* dirname, P ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment