mirror of
https://github.com/oneclickvirt/basics.git
synced 2025-10-17 06:00:43 +08:00
update
This commit is contained in:
@@ -241,7 +241,7 @@ func getCpuInfo(ret *model.SystemInfo, cpuType string) (*model.SystemInfo, error
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO 使用 /proc/device-tree 获取信息 - 特化适配嵌入式系统
|
||||
// 使用 /proc/device-tree 获取信息 - 特化适配嵌入式系统
|
||||
deviceTreeContent, err := os.ReadFile("/proc/device-tree")
|
||||
if err == nil {
|
||||
ret.CpuModel = string(deviceTreeContent)
|
||||
|
Reference in New Issue
Block a user