From 39450ef39a9f62c4b12de0adf38c3c4e2e1e91b4 Mon Sep 17 00:00:00 2001 From: Akizon77 Date: Mon, 22 Sep 2025 21:25:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=9D=9EWindows?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=86=85=E5=AD=98=E4=BD=BF=E7=94=A8=E9=87=8F?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitoring/unit/mem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/unit/mem.go b/monitoring/unit/mem.go index 781ad8a..4632ded 100644 --- a/monitoring/unit/mem.go +++ b/monitoring/unit/mem.go @@ -29,7 +29,7 @@ func Ram() RamInfo { if runtime.GOOS == "windows" { raminfo.Used = v.Total - v.Available } else { - raminfo.Used = v.Used + raminfo.Used = v.Total - v.Free - v.Buffers - v.Cached } return raminfo