Commit 6a21d2f3 authored by Michael McConville's avatar Michael McConville
Browse files

Fix enumeratoin of on-CPU processes in OpenBSD

parent ad1a0ad0
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment