1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +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()
if err != nil {
err = errors.Errorf("totalCPUUsage() failed!err:=%v", err)
return
}
cpu = &cgroupCPU{
frequency: maxFreq,