fix:Remove duplicate code (#2686)
This commit is contained in:
@@ -33,13 +33,8 @@ func initialize() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cores = uint64(len(cpus))
|
cores = uint64(len(cpus))
|
||||||
sets, err := cpuSets()
|
quota = float64(len(cpus))
|
||||||
if err != nil {
|
|
||||||
logx.Error(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
quota = float64(len(sets))
|
|
||||||
cq, err := cpuQuota()
|
cq, err := cpuQuota()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if cq != -1 {
|
if cq != -1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user