1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00

fix return (#275)

This commit is contained in:
longxboy 2019-08-16 15:10:58 +08:00 committed by Felix Hao
parent 1481e14c12
commit 624d898caa

View File

@ -56,6 +56,7 @@ func newCgroupCPU() (cpu *cgroupCPU, err error) {
preTotal, err := totalCPUUsage() preTotal, err := totalCPUUsage()
if err != nil { if err != nil {
err = errors.Errorf("totalCPUUsage() failed!err:=%v", err) err = errors.Errorf("totalCPUUsage() failed!err:=%v", err)
return
} }
cpu = &cgroupCPU{ cpu = &cgroupCPU{
frequency: maxFreq, frequency: maxFreq,