format cpu load value better
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3d01228a87
commit
c1e3105369
@ -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) + '%';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user