mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Cater to high ram systems
This commit is contained in:
parent
c368e7ee9e
commit
3124138e47
1 changed files with 7 additions and 1 deletions
8
quickemu
8
quickemu
|
@ -302,7 +302,13 @@ function vm_boot() {
|
|||
local RAM_HOST=$(free --mega -h | grep Mem | cut -d':' -f2 | cut -d'G' -f1 | sed 's/ //g')
|
||||
#Round up - https://github.com/wimpysworld/quickemu/issues/11
|
||||
RAM_HOST=$(printf '%.*f\n' 0 ${RAM_HOST})
|
||||
if [ ${RAM_HOST} -ge 64 ]; then
|
||||
if [ ${RAM_HOST} -ge 256 ]; then
|
||||
RAM_VM="32G"
|
||||
elif [ ${RAM_HOST} -ge 128 ]; then
|
||||
RAM_VM="16G"
|
||||
elif [ ${RAM_HOST} -ge 64 ]; then
|
||||
RAM_VM="8G"
|
||||
elif [ ${RAM_HOST} -ge 32 ]; then
|
||||
RAM_VM="4G"
|
||||
elif [ ${RAM_HOST} -ge 16 ]; then
|
||||
RAM_VM="3G"
|
||||
|
|
Loading…
Reference in a new issue