diff --git a/code/web/www/pages/requires/functions.php b/code/web/www/pages/requires/functions.php index 94780c6..e6de39d 100755 --- a/code/web/www/pages/requires/functions.php +++ b/code/web/www/pages/requires/functions.php @@ -194,6 +194,7 @@ class API_Gen_HTML $macs = ""; $volids = ""; $volsize = 0; + $volused = 0; if($last_clust != $qemu->cluster) { @@ -218,8 +219,9 @@ class API_Gen_HTML { if ($vol->vmid == $qemu->vmid) { - $volids = $vol->volid.",".$volids ; - $volsize = $volsize + $vol->size ; + $volsize = $volsize + $vol->size ; + $volused = $volused + $vol->used ; + $volids = $vol->volid."(".formatBytes($vol->used)."/".formatBytes($vol->size)."),".$volids ; } } } @@ -244,7 +246,7 @@ class API_Gen_HTML '.$qemu->vmid.' '.formatBytes(round($qemu->maxmem)).' '.$qemu->cpus.' - ", $volids).'">'.formatBytes($volsize).' + ", $volids).'">'.formatBytes($volused).'/'.formatBytes($volsize).' ", $macs).'">'.$macs.' '.secondsToDays($qemu->uptime).' '.$qemu->status.'