check for nil isolatedCpus before calling updateIsolated
Signed-off-by: david <davidventura27@gmail.com>
This commit is contained in:
parent
5340d1ec37
commit
840d32622f
|
@ -167,8 +167,8 @@ func (c *cpuCollector) Update(ch chan<- prometheus.Metric) error {
|
||||||
if err := c.updateStat(ch); err != nil {
|
if err := c.updateStat(ch); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := c.updateIsolated(ch); err != nil {
|
if c.isolatedCpus != nil {
|
||||||
return err
|
c.updateIsolated(ch)
|
||||||
}
|
}
|
||||||
return c.updateThermalThrottle(ch)
|
return c.updateThermalThrottle(ch)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue