[BUGFIX] Correct filled loadavg bar with nproc > 1
This commit is contained in:
parent
380b13d04b
commit
fc596ee45f
@ -61,7 +61,7 @@ define(['snabbdom', 'helper', 'moment'], function (V, helper, moment) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
self.showLoad = function showLoad(d) {
|
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) {
|
self.showRAM = function showRAM(d) {
|
||||||
|
Loading…
Reference in New Issue
Block a user