mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 15:25:45 +00:00
Solaris: the average CPU utilization value must never be marked 'offline'
Similar to #729 only for Solaris
This commit is contained in:
parent
02cfd38671
commit
51669ecba8
@ -62,7 +62,8 @@ static void SolarisProcessList_updateCPUcount(ProcessList* super) {
|
||||
spl->cpus[0].online = true;
|
||||
} else {
|
||||
spl->cpus = xReallocArray(spl->cpus, s + 1, sizeof(CPUData));
|
||||
for (int i = 0; i < s + 1; i++) {
|
||||
spl->cpus[0].online = true; /* average is always "online" */
|
||||
for (int i = 1; i < s + 1; i++) {
|
||||
spl->cpus[i].online = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user