From 1261918dce7cd74d40a872c179918cad4be928c5 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 26 Jul 2024 09:20:22 +0000 Subject: [PATCH] update --- README.md | 1 - system/sysctl.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8e15b7b..dc66a7f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ Include: https://github.com/oneclickvirt/gostun ## TODO -- [ ] FreeBSD下获取不到CPU的型号,待修复 - [ ] 检测GPU相关信息,可参考[ghw](https://github.com/jaypipes/ghw) - [ ] CPUCache的信息需要矫正 - [ ] 纯IPV6环境下使用cdn反代获取平台信息 diff --git a/system/sysctl.go b/system/sysctl.go index 29b4ac6..a901317 100644 --- a/system/sysctl.go +++ b/system/sysctl.go @@ -6,7 +6,7 @@ import ( ) func checkSysctlVersion() bool { - out, err := exec.Command("sysctl", "--version").Output() + out, err := exec.Command("sysctl", "-h").Output() if err != nil { return false }