diff options
author | Simon Rettberg | 2022-07-25 11:05:08 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-07-25 11:05:08 +0200 |
commit | 15e2dea6b5d01f6dbdc297ddea0b479060c40f4a (patch) | |
tree | 3c2be1b60da5f3eeaeb9ab819174b68dea80288e /core/modules/vmware-common | |
parent | [system-tweaks] Disable automatic memory compaction, do at session start (diff) | |
download | mltk-15e2dea6b5d01f6dbdc297ddea0b479060c40f4a.tar.gz mltk-15e2dea6b5d01f6dbdc297ddea0b479060c40f4a.tar.xz mltk-15e2dea6b5d01f6dbdc297ddea0b479060c40f4a.zip |
[vmware-common] Fix default vram when nothing is set
Diffstat (limited to 'core/modules/vmware-common')
-rw-r--r-- | core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |