mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
Fix: Update VM page to show memory in GB if > 1024MB
This commit is contained in:
@@ -64,7 +64,7 @@ foreach ($vms as $vm) {
|
||||
} else {
|
||||
$mem = $lv->domain_get_memory($res)/1024;
|
||||
}
|
||||
$mem = round($mem).'M';
|
||||
$mem = (round($mem) >= 1024) ? (round($mem) /1024) .'G': round($mem) .'M';
|
||||
$vcpu = $dom['nrVirtCpu'];
|
||||
$template = $lv->_get_single_xpath_result($res, '//domain/metadata/*[local-name()=\'vmtemplate\']/@name');
|
||||
if (empty($template)) $template = 'Custom';
|
||||
|
||||
Reference in New Issue
Block a user