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
75598c13
Commit
75598c13
authored
Mar 27, 2018
by
Guy M. Broome
Committed by
Hisham Muhammad
Apr 05, 2018
Browse files
Solaris: Implement kernel thread counting
parent
c235b45c
Changes
1
Show whitespace changes
Inline
Side-by-side
solaris/SolarisProcessList.c
View file @
75598c13
...
...
@@ -413,6 +413,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
dir
=
opendir
(
PROCDIR
);
if
(
!
dir
)
return
;
// Is proc mounted?
// We always count the scheduler
this
->
kernelThreads
=
1
;
while
((
entry
=
readdir
(
dir
))
!=
NULL
)
{
addRunning
=
0
;
addTotal
=
0
;
...
...
@@ -518,7 +520,7 @@ void ProcessList_goThroughEntries(ProcessList* this) {
ProcessList_enumerateLWPs
(
proc
,
name
,
this
,
tv
);
}
proc
->
show
=
!
(
hideKernelThreads
&&
sproc
->
kernel
);
if
(
_pstatus
.
pr_flags
&
sproc
->
kernel
)
{
if
(
sproc
->
kernel
)
{
if
(
hideKernelThreads
)
{
addRunning
=
0
;
addTotal
=
0
;
...
...
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