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())