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:
Charlie Voiselle 2018-05-08 14:11:29 -04:00 committed by GitHub
parent c42340ca48
commit 893b01158c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {