[BUGFIX] Correct filled loadavg bar with nproc > 1

This commit is contained in:
Geno 2018-02-11 12:42:48 +01:00 committed by Xaver Maierhofer
parent 380b13d04b
commit fc596ee45f
1 changed files with 1 additions and 1 deletions

View File

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