From 92be22c054f6f5d1294093440ed2093d1e2cfc45 Mon Sep 17 00:00:00 2001 From: guohongze Date: Fri, 1 Dec 2017 22:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96CPU=5FCORES=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/client/adminset_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/client/adminset_agent.py b/install/client/adminset_agent.py index e8998d45..c7d92a16 100755 --- a/install/client/adminset_agent.py +++ b/install/client/adminset_agent.py @@ -91,7 +91,7 @@ def get_cpu_model(): def get_cpu_cores(): - cpu_cores = {"logical": psutil.cpu_count(logical=False), "physical": psutil.cpu_count()} + cpu_cores = {"physical": psutil.cpu_count(logical=False) if psutil.cpu_count(logical=False) else 0, "logical": psutil.cpu_count()} return cpu_cores