Skip to content
Snippets Groups Projects
Commit fc596ee4 authored by Geno's avatar Geno Committed by Xaver Maierhofer
Browse files

[BUGFIX] Correct filled loadavg bar with nproc > 1

parent 380b13d0
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ define(['snabbdom', 'helper', 'moment'], function (V, helper, moment) { ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment