Fix enumeratoin of on-CPU processes in OpenBSD

This commit is contained in:
Michael McConville 2015-09-19 12:45:22 -04:00
parent ad1a0ad08d
commit 6a21d2f3a6
1 changed files with 2 additions and 1 deletions

View File

@ -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;