update:更新 gopsutil 版本

fix:旧版本的 gopsutil 使用了 macOS 12.0 中已废弃的 IOMasterPort API,导致编译时出现警告。
# github.com/shirou/gopsutil/disk
iostat_darwin.c:28:2: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:143:1: note: 'IOMasterPort' has been explicitly marked deprecated here
This commit is contained in:
openapphub
2025-12-17 15:01:33 +08:00
parent b038184514
commit 237305c00b
2 changed files with 2 additions and 3 deletions

3
glc/go.mod Normal file → Executable file
View File

@@ -8,7 +8,7 @@ require (
github.com/gin-gonic/gin v1.10.0
github.com/gotoeasy/glang v0.21.4
github.com/rabbitmq/amqp091-go v1.10.0
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/shirou/gopsutil/v3 v3.24.5
github.com/syndtr/goleveldb v1.0.0
)
@@ -50,7 +50,6 @@ require (
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/rs/xid v1.6.0 // indirect
github.com/shirou/gopsutil/v3 v3.24.5 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect

2
glc/ldb/sysmnt/storage_data.go Normal file → Executable file
View File

@@ -12,7 +12,7 @@ import (
"time"
"github.com/gotoeasy/glang/cmn"
"github.com/shirou/gopsutil/disk"
"github.com/shirou/gopsutil/v3/disk"
)
type StorageResult struct {