diff options
Diffstat (limited to 'tcwg-base/tcwg-dev')
-rwxr-xr-x | tcwg-base/tcwg-dev/start.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tcwg-base/tcwg-dev/start.sh b/tcwg-base/tcwg-dev/start.sh index b281d34b..c22f008f 100755 --- a/tcwg-base/tcwg-dev/start.sh +++ b/tcwg-base/tcwg-dev/start.sh @@ -100,7 +100,9 @@ case "$home" in esac # Use at most half of all available RAM. -memlimit=$(($(free -g | awk '/^Mem/ { print $2 }') / 2))G +memlimit=$(free -m | awk '/^Mem/ { print $2 }') +memlimit=$(($memlimit / 2))m + # IPC_LOCK is required for some implementations of ssh-agent (e.g., MATE's). # SYS_PTRACE is required for debugger work. # seccomp=unconfined to allow disabling of ASLR for sanitizer regression tests. |