Solaris: the average CPU utilization value must never be marked 'offline'

Similar to #729 only for Solaris
This commit is contained in:
Christian Göttsche 2021-08-10 16:58:35 +02:00
parent 02cfd38671
commit 51669ecba8

View File

@ -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;
}
}