Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
9 years ago
by
Michael McConville
Browse files
Options
Download
Email Patches
Plain Diff
Fix enumeratoin of on-CPU processes in OpenBSD
parent
ad1a0ad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbsd/OpenBSDProcessList.c
+2
-1
openbsd/OpenBSDProcessList.c
with
2 additions
and
1 deletion
+2
-1
openbsd/OpenBSDProcessList.c
View file @
6a21d2f3
...
...
@@ -242,7 +242,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
}
this
->
totalTasks
++
;
if
(
proc
->
state
==
'R'
)
{
// SRUN ('R') means runnable, not running
if
(
proc
->
state
==
'P'
)
{
this
->
runningTasks
++
;
}
proc
->
updated
=
true
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help