mirror of https://github.com/apache/cloudstack.git
CS-14562: Domian page does not show up (spinner shown) for a very long time when there are large number of hosts and vms.
This commit is contained in:
parent
c159f07c24
commit
38306f52da
|
|
@ -277,10 +277,21 @@
|
|||
else
|
||||
total = 0;
|
||||
domainObj["accountTotal"] = total;
|
||||
var itemsAcc;
|
||||
var totalVMs=0;
|
||||
var totalVolumes=0;
|
||||
for(var i=0;i<total;i++) {
|
||||
itemsAcc = json.listaccountsresponse.account[i];
|
||||
totalVMs = totalVMs + itemsAcc.vmtotal;
|
||||
totalVolumes = totalVolumes + itemsAcc.volumetotal;
|
||||
}
|
||||
domainObj["vmTotal"] = totalVMs;
|
||||
domainObj["volumeTotal"] = totalVolumes;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
/* $.ajax({
|
||||
url: createURL("listVirtualMachines&details=min&domainid=" + domainObj.id),
|
||||
async: false,
|
||||
dataType: "json",
|
||||
|
|
@ -308,7 +319,7 @@
|
|||
total = 0;
|
||||
domainObj["volumeTotal"] = total;
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
$.ajax({
|
||||
url: createURL("listResourceLimits&domainid=" + domainObj.id),
|
||||
|
|
|
|||
Loading…
Reference in New Issue