你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Updated CPU detection on Linux to account for different locales.
这个提交包含在:
@@ -289,7 +289,9 @@ def get_host_info():
|
|||||||
|
|
||||||
# CPU information
|
# CPU information
|
||||||
try:
|
try:
|
||||||
cpuIDinfo = subprocess.check_output("cat /proc/cpuinfo", shell=True, stderr=subprocess.STDOUT).decode('utf-8').strip()
|
my_env = os.environ.copy()
|
||||||
|
my_env["LC_ALL"] = "C"
|
||||||
|
cpuIDinfo = subprocess.check_output("cat /proc/cpuinfo", shell=True, env=my_env, stderr=subprocess.STDOUT).decode('utf-8').strip()
|
||||||
for line in cpuIDinfo.split('\n'):
|
for line in cpuIDinfo.split('\n'):
|
||||||
if re.search('model name', line):
|
if re.search('model name', line):
|
||||||
cpuID = re.sub('.*model name.*:', '', line, 1).strip()
|
cpuID = re.sub('.*model name.*:', '', line, 1).strip()
|
||||||
|
在新工单中引用
屏蔽一个用户