From 3abca7cf9d5d25b94dee00f9d72be62515788618 Mon Sep 17 00:00:00 2001 From: Akizon77 Date: Tue, 2 Dec 2025 17:24:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8htop?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E5=BC=8F=E8=8E=B7=E5=8F=96=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitoring/unit/mem.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/monitoring/unit/mem.go b/monitoring/unit/mem.go index b224889..29b69c3 100644 --- a/monitoring/unit/mem.go +++ b/monitoring/unit/mem.go @@ -200,11 +200,7 @@ func Ram() RamInfo { } if runtime.GOOS == "linux" { - h := CallFree() - if h.Total > 0 { - return h - } - h = GetMemHtopLike() + h := GetMemHtopLike() if h.Total > 0 { return h }