diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/files')
-rw-r--r-- | os-plugins/plugins/vmchooser/files/run-virt.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index 5aefc47e..5733ee41 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -107,7 +107,9 @@ parallel=$(grep -io '<parport param=.*"' ${xml} | awk -F '"' '{ print $2 }') # cpu cores cpu_cores="${cpu_cores}" -# Get total amount of memory installed in your machine +# check for CPU virtualization flags + +# get total amount of memory installed in your machine totalmem=$(expr $(grep -i "memtotal" /proc/meminfo | awk '{print $2}') / 1024) permem=60 mem=$(expr ${totalmem} / 100 \* ${permem} / 4 \* 4) |