format cpu load value better

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2015-09-23 17:54:45 +02:00 committed by Dietmar Maurer
parent bd597ebab8
commit 78fbaa2ef6

View File

@ -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) + '%';
}
}
]