From 80e8b79e3e6cf94d240006971bc674e925e0042f Mon Sep 17 00:00:00 2001 From: Nasreddine Bac Ali Date: Thu, 24 Oct 2019 17:36:40 +0200 Subject: [PATCH] fix typo --- lib/mem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mem.js b/lib/mem.js index b6d4039..ba741bd 100644 --- a/lib/mem.js +++ b/lib/mem.js @@ -73,7 +73,7 @@ bucket.mem = { var resultMemory = (out.match(/\d+/g)) totalMem = parseInt(resultMemory[0], 10) * 1024 - freeMem = parseInt(resultMemory[1], 10) + (parseInt(resultMemory[3], 10) + parseInt(resultMemory[4], 10)) * 1024 + freeMem = (parseInt(resultMemory[1], 10) + parseInt(resultMemory[3], 10) + parseInt(resultMemory[4], 10)) * 1024 } var totalMemMb = parseFloat((totalMem / 1024 / 1024).toFixed(2))