From 893b01158c2a4c21797674ebb4e418e820213e8d Mon Sep 17 00:00:00 2001 From: Charlie Voiselle Date: Tue, 8 May 2018 14:11:29 -0400 Subject: [PATCH] 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. --- helper/stats/cpu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/stats/cpu.go b/helper/stats/cpu.go index e6d3bf26c..34afe8113 100644 --- a/helper/stats/cpu.go +++ b/helper/stats/cpu.go @@ -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 {