From 15e2dea6b5d01f6dbdc297ddea0b479060c40f4a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 25 Jul 2022 11:05:08 +0200 Subject: [vmware-common] Fix default vram when nothing is set --- .../opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/vmware-common') diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc index 72036111..4dff1bc6 100644 --- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc +++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc @@ -272,7 +272,7 @@ setup_graphics() { | sed -r 's/^[^=]+//;s/^(\s|=|")*//;s/(\s|")+$//' ) existing="$vram" if [ -z "$vram" ]; then # Nothing, default to half of max - vram="$(( vram / 2 ))" + vram="$(( max_vram / 2 ))" elif (( vram > max_vram )); then # Explicitly set, cap if too excessive vram="$max_vram" fi -- cgit v1.2.3-55-g7522