Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kakuilan committed Dec 14, 2024
1 parent 96bf8c7 commit 134673c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (ko *LkkOS) GetCpuInfo() *CpuInfo {
}

//打印CPU信息
_, cpuInfos, _ := ko.System("machdep.cpu")
_, cpuInfos, _ := ko.System("sysctl machdep.cpu")
println("cpuInfos: ", cpuInfos)

//调用系统命令获取,例如
Expand Down

0 comments on commit 134673c

Please sign in to comment.