diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-10 16:58:35 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-08-10 17:09:04 +0200 |
commit | 51669ecba8b68f4790992dccdd3185b628cbf11d (patch) | |
tree | a3ffab6a618f9f15fd602c50cf7451ee782c6538 /solaris | |
parent | 02cfd38671ab122b87d2443b24cc6a2440cbc3b9 (diff) |
Solaris: the average CPU utilization value must never be marked 'offline'
Similar to #729 only for Solaris
Diffstat (limited to 'solaris')
-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; } } |