add xen support to libvirt vm discovery

git-svn-id: http://www.observium.org/svn/observer/trunk@2111 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-04-20 16:48:33 +00:00
parent 30b2918858
commit 2b9cad302d
5 changed files with 103 additions and 87 deletions

View File

@ -20,9 +20,9 @@ else if ($vm['vmwVmGuestOS'] == "")
if ($vm['vmwVmMemSize'] >= 1024)
{
echo("<td class=list>" . $vm['vmwVmMemSize']/1024 . " GB</td>");
echo("<td class=list>" . sprintf("%.2f",$vm['vmwVmMemSize']/1024) . " GB</td>");
} else {
echo("<td class=list>" . $vm['vmwVmMemSize'] . " MB</td>");
echo("<td class=list>" . sprintf("%.2f",$vm['vmwVmMemSize']) . " MB</td>");
}
echo('<td class="list">' . $vm['vmwVmCpus'] . " CPU</td>");