mirror of https://github.com/xzeldon/htop.git
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;
|
spl->cpus[0].online = true;
|
||||||
} else {
|
} else {
|
||||||
spl->cpus = xReallocArray(spl->cpus, s + 1, sizeof(CPUData));
|
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;
|
spl->cpus[i].online = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue