Skip to content

Commit

Permalink
fix:Remove duplicate code (#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim1116 committed Dec 10, 2022
1 parent dcfc9b7 commit 944193c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/stat/internal/cpu_linux.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 944193c

Please sign in to comment.