This commit is contained in:
spiritlhl
2024-07-01 15:25:18 +00:00
parent f62720f74e
commit ee06b25ec7

View File

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