diff --git a/lib/utils/node.js b/lib/utils/node.js index e40cee5..89f386a 100644 --- a/lib/utils/node.js +++ b/lib/utils/node.js @@ -61,7 +61,7 @@ define(['snabbdom', 'helper', 'moment'], function (V, helper, moment) { }; self.showLoad = function showLoad(d) { - return showBar(d.loadavg.toFixed(2), d.loadavg % 1, d.loadavg >= d.nproc); + return showBar(d.loadavg.toFixed(2), d.loadavg / (d.nproc || 1), d.loadavg >= d.nproc); }; self.showRAM = function showRAM(d) {