From 944193ce258c1d331357847bcb45c2962310a935 Mon Sep 17 00:00:00 2001 From: Tim Xiao <657978106@qq.com> Date: Sat, 10 Dec 2022 20:13:37 +0800 Subject: [PATCH] fix:Remove duplicate code (#2686) --- core/stat/internal/cpu_linux.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/stat/internal/cpu_linux.go b/core/stat/internal/cpu_linux.go index 5c8c6521..af629099 100644 --- a/core/stat/internal/cpu_linux.go +++ b/core/stat/internal/cpu_linux.go @@ -33,13 +33,8 @@ func initialize() { } cores = uint64(len(cpus)) - sets, err := cpuSets() - if err != nil { - logx.Error(err) - return - } + quota = float64(len(cpus)) - quota = float64(len(sets)) cq, err := cpuQuota() if err == nil { if cq != -1 {