Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jul 26, 2024
1 parent 85c38f0 commit b5afbc2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions system/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ func getCpuInfo(ret *model.SystemInfo, cpuType string) (*model.SystemInfo, error
if exit {
if ret.CpuModel == "" || len(ret.CpuModel) < 3 {
cname, err := getSysctlValue(path, "hw.model")
fmt.Println(cname)
if err == nil && !strings.Contains(cname, "cannot") {
ret.CpuModel = cname
// 获取CPU频率
Expand All @@ -195,7 +194,6 @@ func getCpuInfo(ret *model.SystemInfo, cpuType string) (*model.SystemInfo, error
if ret.CpuCache == "" {
// 获取CPU缓存配置
ccache, err := getSysctlValue(path, "hw.cacheconfig")
fmt.Println(ccache)
if err == nil && !strings.Contains(ccache, "cannot") {
ret.CpuCache = strings.TrimSpace(strings.Split(ccache, ":")[1])
}
Expand All @@ -216,7 +214,6 @@ func getCpuInfo(ret *model.SystemInfo, cpuType string) (*model.SystemInfo, error
CPU_AES = aesMatch[1]
}
}
fmt.Println(CPU_AES)
if CPU_AES != "" {
if runtime.GOOS == "windows" {
ret.CpuAesNi = "[Y] Enabled"
Expand Down

0 comments on commit b5afbc2

Please sign in to comment.