diff --git a/apps/monitoring/src/server/server.ts b/apps/monitoring/src/server/server.ts index 5792b3e54..62709f8f8 100644 --- a/apps/monitoring/src/server/server.ts +++ b/apps/monitoring/src/server/server.ts @@ -16,7 +16,7 @@ const getServerMetrics = async () => { console.log("Memory:", mem); const memTotalGB = mem.total / 1024 / 1024 / 1024; - const memUsedGB = (mem.total - mem.available) / 1024 / 1024 / 1024; + const memUsedGB = (mem.total - mem.free - mem.buffcache) / 1024 / 1024 / 1024; const memUsedPercent = (memUsedGB / memTotalGB) * 100; return {