summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorMichael McConville <mmcconville ~a~ mykolab ~d~ com>2015-09-19 12:45:22 -0400
committerMichael McConville <mmcconville ~a~ mykolab ~d~ com>2015-09-19 12:45:22 -0400
commit6a21d2f3a6d1f4735e5a2a2145eb78309f4d9073 (patch)
tree17b070ae5800eba8010a3e0255029a7895a07c53 /openbsd
parentad1a0ad08d4b91852a465a0913618044c7a79873 (diff)
Fix enumeratoin of on-CPU processes in OpenBSD
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/OpenBSDProcessList.c3
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy