From 7e9a09c960a40040c01fff9d7dabbfda50cffccf Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 5 Jul 2023 18:16:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=B9=E5=99=A8=20CPU=20=E9=99=90?= =?UTF-8?q?=E5=88=B6=E4=B8=8A=E9=99=90=E6=94=B9=E4=B8=BA=E6=9C=BA=E5=99=A8?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=A0=B8=E5=BF=83=E6=95=B0=20(#1551)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/container.go b/backend/app/service/container.go index 14fc6fdc2..f1c6b1e4f 100644 --- a/backend/app/service/container.go +++ b/backend/app/service/container.go @@ -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) }