Added Disk to overview (issue:1547) (#1569)
This commit is contained in:
parent
4f54b18ce1
commit
c68ca0c773
5 changed files with 13 additions and 6 deletions
|
@ -101,11 +101,13 @@
|
|||
currentCpu = parseFloat(((info.proc.cpu.total / cpuMax) * 100).toFixed(2).toString());
|
||||
}
|
||||
element.find('[data-action="memory"]').html(parseInt(info.proc.memory.total / (1024 * 1024)));
|
||||
element.find('[data-action="disk"]').html(parseInt(info.proc.disk.used));
|
||||
element.find('[data-action="cpu"]').html(currentCpu);
|
||||
} else {
|
||||
element.find('[data-action="memory"]').html('--');
|
||||
element.find('[data-action="disk"]').html('--');
|
||||
element.find('[data-action="cpu"]').html('--');
|
||||
}
|
||||
});
|
||||
});
|
||||
})();
|
||||
})();
|
|
@ -74,9 +74,11 @@
|
|||
}
|
||||
element.find('[data-action="memory"]').html(parseInt(data.proc.memory.total / (1024 * 1024)));
|
||||
element.find('[data-action="cpu"]').html(currentCpu);
|
||||
element.find('[data-action="disk"]').html(parseInt(data.proc.disk.used));
|
||||
} else {
|
||||
element.find('[data-action="memory"]').html('--');
|
||||
element.find('[data-action="cpu"]').html('--');
|
||||
element.find('[data-action="disk"]').html('--');
|
||||
}
|
||||
}
|
||||
}).fail(function (jqXHR) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue