mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-10 09:05:18 +08:00
fix: 容器 CPU 限制上限改为机器逻辑核心数 (#1551)
This commit is contained in:
parent
8212ff117b
commit
7e9a09c960
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ func (u *ContainerService) Prune(req dto.ContainerPrune) (dto.ContainerPruneRepo
|
|||
}
|
||||
|
||||
func (u *ContainerService) LoadResouceLimit() (*dto.ResourceLimit, error) {
|
||||
cpuCounts, err := cpu.Counts(false)
|
||||
cpuCounts, err := cpu.Counts(true)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("load cpu limit failed, err: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue