diff options
Diffstat (limited to 'solaris/SolarisProcessList.c')
-rw-r--r-- | solaris/SolarisProcessList.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c index 3251a333..62a1f42c 100644 --- a/solaris/SolarisProcessList.c +++ b/solaris/SolarisProcessList.c @@ -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; } } |