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:
Sanjay Tripathi 2012-06-06 23:24:59 +05:30
parent c159f07c24
commit 38306f52da
1 changed files with 13 additions and 2 deletions

View File

@ -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),