你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Update osversion for Linux.
这个提交包含在:
@@ -234,7 +234,8 @@ def get_host_info():
|
|||||||
hyperthreading = True
|
hyperthreading = True
|
||||||
|
|
||||||
# OS version
|
# OS version
|
||||||
osversion = platform.linux_distribution()[0] + ' (' + platform.linux_distribution()[1] + ')'
|
osrelease = subprocess.check_output("cat /proc/sys/kernel/osrelease", shell=True).decode('utf-8').strip()
|
||||||
|
osversion = 'Linux ' + osrelease + ', (' + platform.linux_distribution()[0] + ')'
|
||||||
|
|
||||||
hostinfo = {}
|
hostinfo = {}
|
||||||
hostinfo['machineID'] = machineID.strip()
|
hostinfo['machineID'] = machineID.strip()
|
||||||
@@ -248,6 +249,7 @@ def get_host_info():
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
hostinfo['physicalcores'] = hostinfo['logicalcores']
|
hostinfo['physicalcores'] = hostinfo['logicalcores']
|
||||||
hostinfo['ram'] = psutil.virtual_memory().total
|
hostinfo['ram'] = psutil.virtual_memory().total
|
||||||
|
|
||||||
return hostinfo
|
return hostinfo
|
||||||
|
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户