mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-27 22:49:44 -08:00
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 a new issue