Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
fix(System): correct memory usage percentage calculation
Chris Sherwood812d13c3da06
diff --git a/admin/inertia/pages/settings/system.tsx b/admin/inertia/pages/settings/system.tsxindex 950f2fd7..83309d6c 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): 0const swapUsagePercent = info?.mem.swaptotal