From 857421719134ca9370bef5182e78b6fd805db812 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 17 May 2022 23:23:58 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E6=94=B9=E8=BF=9B=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E6=89=A9=E5=B1=95=E4=BF=A1=E6=81=AF=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/host/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/host/utils.py b/spug_api/apps/host/utils.py index d550e95..097f201 100644 --- a/spug_api/apps/host/utils.py +++ b/spug_api/apps/host/utils.py @@ -189,7 +189,7 @@ def fetch_host_extend(ssh): with ssh: code, out = ssh.exec_command_raw('nproc') if code != 0: - code, out = ssh.exec_command_raw("grep -c 'model name' /proc/cpuinfo") + code, out = ssh.exec_command_raw("grep -c '^processor' /proc/cpuinfo") if code == 0: response['cpu'] = int(out.strip())