你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 20:46:52 +08:00
Update osversion for Linux.
这个提交包含在:
@@ -234,7 +234,8 @@ def get_host_info():
|
||||
hyperthreading = True
|
||||
|
||||
# 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['machineID'] = machineID.strip()
|
||||
@@ -248,6 +249,7 @@ def get_host_info():
|
||||
except ValueError:
|
||||
hostinfo['physicalcores'] = hostinfo['logicalcores']
|
||||
hostinfo['ram'] = psutil.virtual_memory().total
|
||||
|
||||
return hostinfo
|
||||
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户