diff options
author | Dirk von Suchodoletz | 2010-03-06 02:28:40 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2010-03-06 02:28:40 +0100 |
commit | e5a270b5efc59644a686c1942805227f689f7793 (patch) | |
tree | 52e8a23ec60c09abfa35680a1b6b0c7c7d07a6ef /os-plugins/plugins/vmchooser/files/run-virt.sh | |
parent | Reflect this in VERSIONS ... (diff) | |
download | core-e5a270b5efc59644a686c1942805227f689f7793.tar.gz core-e5a270b5efc59644a686c1942805227f689f7793.tar.xz core-e5a270b5efc59644a686c1942805227f689f7793.zip |
Improvement and fixes ...
Diffstat (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh')
-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) |