fix: 默认使用htop的方式获取内存

This commit is contained in:
Akizon77
2025-12-02 17:24:33 +08:00
parent aab157a7bb
commit 3abca7cf9d

View File

@@ -200,11 +200,7 @@ func Ram() RamInfo {
} }
if runtime.GOOS == "linux" { if runtime.GOOS == "linux" {
h := CallFree() h := GetMemHtopLike()
if h.Total > 0 {
return h
}
h = GetMemHtopLike()
if h.Total > 0 { if h.Total > 0 {
return h return h
} }