From 41cd51ccd68c6ac105f29d53208316c5f5f1dac6 Mon Sep 17 00:00:00 2001 From: Moe Date: Fri, 28 Aug 2020 09:30:25 -0700 Subject: [PATCH] update ram collection --- libs/health/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/health/utils.js b/libs/health/utils.js index ad1e769e..98eecdfc 100644 --- a/libs/health/utils.js +++ b/libs/health/utils.js @@ -54,7 +54,7 @@ exports.getRamUsageOnLinux = () => { const lines = data.split('\n'); const total = Math.floor(getValFromLine(lines[0]) / 1024); const free = Math.floor(getValFromLine(lines[1]) / 1024); - const cached = Math.floor(getValFromLine(lines[3]) / 1024); + const cached = Math.floor(getValFromLine(lines[4]) / 1024); const used = total - free; const percentUsed = Math.ceil(((used - cached) / total) * 100); resolve({