commit | cb1573e779d170ea229d45f9d51423505b0ca841 | [log] [tgz] |
---|---|---|
author | buyingyi <buyingyi@gmail.com> | Mon Dec 02 17:04:59 2013 -0800 |
committer | buyingyi <buyingyi@gmail.com> | Mon Dec 02 17:04:59 2013 -0800 |
tree | 5c9efc92cd8c67532c5e744b0e5732206a9bae6a | |
parent | a1596f73dd82fdd060eef9b71d0885b9707fc427 [diff] [blame] |
fix for linux setting
diff --git a/pregelix/pregelix-dist/src/main/resources/scripts/startcc.sh b/pregelix/pregelix-dist/src/main/resources/scripts/startcc.sh index e637fde..576fc1f 100644 --- a/pregelix/pregelix-dist/src/main/resources/scripts/startcc.sh +++ b/pregelix/pregelix-dist/src/main/resources/scripts/startcc.sh
@@ -57,6 +57,7 @@ if [ $OS_NAME = $LINUX_OS ]; then MEM_SIZE=`cat /proc/meminfo |grep MemTotal|awk '{print $2}'` + MEM_SIZE=$(($MEM_SIZE * 1000)) else MEM_SIZE=`sysctl -a | grep "hw.memsize ="|awk '{print $3}'` fi