1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-15 09:36:43 +00:00

update UI, add pool status

This commit is contained in:
2019-04-29 21:04:19 +08:00
parent 75657a7d6d
commit e80f1c8480
4 changed files with 153 additions and 83 deletions

View File

@@ -72,8 +72,8 @@ function resourceResponseHandler(res) {
$.each(res["resources"], function (i, node) {
var item = {
'host': node.host,
'CPU': '-',
'MEM': '-',
'CPU': node.cpu_num,
'MEM': node.mem_available + ' / ' + node.mem_total + ' (GB)',
'GPU': node.status.length,
'status': node.status
};