From 6a21d2f3a6d1f4735e5a2a2145eb78309f4d9073 Mon Sep 17 00:00:00 2001 From: Michael McConville Date: Sat, 19 Sep 2015 12:45:22 -0400 Subject: Fix enumeratoin of on-CPU processes in OpenBSD --- openbsd/OpenBSDProcessList.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsd') 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; -- cgit v1.2.3