diff --git a/openbsd/OpenBSDProcessList.c b/openbsd/OpenBSDProcessList.c index e003bde0..10ba2d62 100644 --- a/openbsd/OpenBSDProcessList.c +++ b/openbsd/OpenBSDProcessList.c @@ -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;