format cpu load value better
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bd597ebab8
commit
78fbaa2ef6
@ -84,13 +84,13 @@ Ext.define('PVE.NodeSummary', {
|
||||
if (!values.uptime) {
|
||||
return '-';
|
||||
}
|
||||
return PVE.Utils.format_size(values.mem)
|
||||
return PVE.Utils.format_size(values.mem);
|
||||
},
|
||||
cpuinfo: function(values) {
|
||||
if (!values.uptime) {
|
||||
return '-';
|
||||
}
|
||||
return (values.cpu*100).toFixed(1);
|
||||
return (values.cpu*100).toFixed(1) + '%';
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user