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:
parent
1481e14c12
commit
624d898caa
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user