From e99c38970a32b9d0d56918c5d56c5f624f7bab78 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Sat, 18 Nov 2017 12:08:39 +0100 Subject: [PATCH] [BUGFIX] 0 value in loadavg --- lib/utils/node.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/utils/node.js b/lib/utils/node.js index dd9e8e8..e40cee5 100644 --- a/lib/utils/node.js +++ b/lib/utils/node.js @@ -61,16 +61,10 @@ define(['snabbdom', 'helper', 'moment'], function (V, helper, moment) { }; self.showLoad = function showLoad(d) { - if (!d.loadavg) { - return undefined; - } return showBar(d.loadavg.toFixed(2), d.loadavg % 1, d.loadavg >= d.nproc); }; self.showRAM = function showRAM(d) { - if (!d.memory_usage) { - return undefined; - } return showBar(Math.round(d.memory_usage * 100) + ' %', d.memory_usage, d.memory_usage >= 0.8); };