mirror of https://github.com/xzeldon/htop.git
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:
parent
4367e64b1d
commit
72dbb72b68
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue