From 812d13c3da065dcec7839a8bd4b39b7d0db67ca3 Mon Sep 17 00:00:00 2001 From: Chris Sherwood Date: Sat, 7 Feb 2026 09:56:12 -0800 Subject: [PATCH] fix(System): correct memory usage percentage calculation The percentage was using (total - available) / total which excludes reclaimable buffers/cache, but the displayed "Used RAM" value uses mem.used which includes them. This mismatch showed 14% alongside 22 GB / 62 GB. Now uses mem.used / mem.total so the percentage matches the displayed numbers. Co-Authored-By: Claude Opus 4.6 --- admin/inertia/pages/settings/system.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inertia/pages/settings/system.tsx b/admin/inertia/pages/settings/system.tsx index 950f2fd..83309d6 100644 --- a/admin/inertia/pages/settings/system.tsx +++ b/admin/inertia/pages/settings/system.tsx @@ -18,7 +18,7 @@ export default function SettingsPage(props: { }) const memoryUsagePercent = info?.mem.total - ? (((info.mem.total - info.mem.available) / info.mem.total) * 100).toFixed(1) + ? ((info.mem.used / info.mem.total) * 100).toFixed(1) : 0 const swapUsagePercent = info?.mem.swaptotal