mirror of
https://github.com/fankes/komari-agent.git
synced 2026-02-04 12:17:30 +08:00
fix: 默认使用htop的方式获取内存
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user