mirror of https://github.com/xzeldon/htop.git
Fix enumeratoin of on-CPU processes in OpenBSD
This commit is contained in:
parent
ad1a0ad08d
commit
6a21d2f3a6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue