fix:Remove duplicate code (#2686)

master
Tim Xiao 2 years ago committed by GitHub
parent dcfc9b79f1
commit 944193ce25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save