Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
72dbb72b
Commit
72dbb72b
authored
Nov 26, 2010
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
ProcessList.c
View file @
72dbb72b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment