diff options
author | Michael McConville <mmcconville ~a~ mykolab ~d~ com> | 2015-09-19 12:45:22 -0400 |
---|---|---|
committer | Michael McConville <mmcconville ~a~ mykolab ~d~ com> | 2015-09-19 12:45:22 -0400 |
commit | 6a21d2f3a6d1f4735e5a2a2145eb78309f4d9073 (patch) | |
tree | 17b070ae5800eba8010a3e0255029a7895a07c53 /openbsd | |
parent | ad1a0ad08d4b91852a465a0913618044c7a79873 (diff) |
Fix enumeratoin of on-CPU processes in OpenBSD
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/OpenBSDProcessList.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |