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