update ram collection

install-with-shinobicctv-user-instead-of-root
Moe 2020-08-28 09:30:25 -07:00
parent cf6799eff2
commit 41cd51ccd6
1 changed files with 1 additions and 1 deletions

View File

@ -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({