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
6a21d2f3
Commit
6a21d2f3
authored
Sep 19, 2015
by
Michael McConville
Browse files
Fix enumeratoin of on-CPU processes in OpenBSD
parent
ad1a0ad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
openbsd/OpenBSDProcessList.c
View file @
6a21d2f3
...
@@ -242,7 +242,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
...
@@ -242,7 +242,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
}
}
this
->
totalTasks
++
;
this
->
totalTasks
++
;
if
(
proc
->
state
==
'R'
)
{
// SRUN ('R') means runnable, not running
if
(
proc
->
state
==
'P'
)
{
this
->
runningTasks
++
;
this
->
runningTasks
++
;
}
}
proc
->
updated
=
true
;
proc
->
updated
=
true
;
...
...
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