From 59ca1fd80d639a97ba8f1c6ac778c3423e82c0cf Mon Sep 17 00:00:00 2001 From: Anzor Apshev Date: Thu, 21 Jun 2018 12:07:17 +0300 Subject: [PATCH] increased timeout during CPU fingerprinting --- helper/stats/cpu.go | 2 +- vendor/github.com/shirou/gopsutil/internal/common/common.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/stats/cpu.go b/helper/stats/cpu.go index e6d3bf2..ed98d83 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: initErr:%v error:%v", initErr, err)) } for _, cpu := range cpuInfo { diff --git a/vendor/github.com/shirou/gopsutil/internal/common/common.go b/vendor/github.com/shirou/gopsutil/internal/common/common.go index fcee6be..c63e490 100644 --- a/vendor/github.com/shirou/gopsutil/internal/common/common.go +++ b/vendor/github.com/shirou/gopsutil/internal/common/common.go @@ -26,7 +26,7 @@ import ( ) var ( - Timeout = 3 * time.Second + Timeout = 60 * time.Second ErrTimeout = errors.New("command timed out") ) -- 2.7.4