mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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
Block a user