Fix the CPU Information error message
The new version of gopsutil introduces a 3 second timeout that could come up as an error here; however, we are outputting the wrong variable and eating the error.
This commit is contained in:
parent
c42340ca48
commit
893b01158c
|
@ -29,7 +29,7 @@ func Init() error {
|
|||
|
||||
var cpuInfo []cpu.InfoStat
|
||||
if cpuInfo, err = cpu.Info(); err != nil {
|
||||
merrs = multierror.Append(merrs, fmt.Errorf("Unable to obtain CPU information: %v", initErr))
|
||||
merrs = multierror.Append(merrs, fmt.Errorf("Unable to obtain CPU information: %v", err))
|
||||
}
|
||||
|
||||
for _, cpu := range cpuInfo {
|
||||
|
|
Loading…
Reference in a new issue