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 3d01228a87
commit c1e3105369

View File

@ -84,13 +84,13 @@ Ext.define('PVE.NodeSummary', {
if (!values.uptime) { if (!values.uptime) {
return '-'; return '-';
} }
return PVE.Utils.format_size(values.mem) return PVE.Utils.format_size(values.mem);
}, },
cpuinfo: function(values) { cpuinfo: function(values) {
if (!values.uptime) { if (!values.uptime) {
return '-'; return '-';
} }
return (values.cpu*100).toFixed(1); return (values.cpu*100).toFixed(1) + '%';
} }
} }
] ]