ui: show root disk usage
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
33070956af
commit
34020b929e
@ -83,7 +83,7 @@ Ext.define('PBS.Dashboard', {
|
|||||||
|
|
||||||
let cpu = res.cpu,
|
let cpu = res.cpu,
|
||||||
mem = res.memory,
|
mem = res.memory,
|
||||||
hd = 0;
|
root = res.root;
|
||||||
|
|
||||||
var cpuPanel = me.lookup('cpu');
|
var cpuPanel = me.lookup('cpu');
|
||||||
cpuPanel.updateValue(cpu);
|
cpuPanel.updateValue(cpu);
|
||||||
@ -91,8 +91,8 @@ Ext.define('PBS.Dashboard', {
|
|||||||
var memPanel = me.lookup('mem');
|
var memPanel = me.lookup('mem');
|
||||||
memPanel.updateValue(mem.used / mem.total);
|
memPanel.updateValue(mem.used / mem.total);
|
||||||
|
|
||||||
//var hdPanel = me.lookup('hd');
|
var hdPanel = me.lookup('root');
|
||||||
//hdPanel.updateValue(hd);
|
hdPanel.updateValue(root.used / root.total);
|
||||||
},
|
},
|
||||||
|
|
||||||
init: function(view) {
|
init: function(view) {
|
||||||
@ -188,8 +188,8 @@ Ext.define('PBS.Dashboard', {
|
|||||||
reference: 'mem'
|
reference: 'mem'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: gettext('Storage'),
|
title: gettext('Root Disk'),
|
||||||
reference: 'hd'
|
reference: 'root'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user