diff options
author | Jonathan Bauer | 2021-07-12 13:11:50 +0200 |
---|---|---|
committer | Jonathan Bauer | 2021-07-12 13:11:50 +0200 |
commit | 174c5d96716c0712ecb227212877a2277a24ed57 (patch) | |
tree | 0bc093a5dd072587e6b1509a67aa6d28881e9158 /core/modules/vbox-src | |
parent | Module list: List var needs to be global (diff) | |
download | mltk-174c5d96716c0712ecb227212877a2277a24ed57.tar.gz mltk-174c5d96716c0712ecb227212877a2277a24ed57.tar.xz mltk-174c5d96716c0712ecb227212877a2277a24ed57.zip |
[vbox-src] fix awk call
somehow, sometimes, '**' leads to a syntax error.
Diffstat (limited to 'core/modules/vbox-src')
-rw-r--r-- | core/modules/vbox-src/module.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/vbox-src/module.build b/core/modules/vbox-src/module.build index 04259c55..e29384ad 100644 --- a/core/modules/vbox-src/module.build +++ b/core/modules/vbox-src/module.build @@ -41,7 +41,7 @@ build() { ( # Limit job count - can easily OOM - num="$( awk '$1 == "MemTotal:" { print int(0.25 + $2 / (1024**2)) }' /proc/meminfo )" + num="$( awk '$1 == "MemTotal:" { print int(0.25 + $2 / (1024*1024)) }' /proc/meminfo )" (( num > CPU_CORES )) && num="$CPU_CORES" # the configure script should have created a file called 'env.sh' source "${VBOX_BUILD_DIR}/env.sh" || perror "Failed to source '${VBOX_BUILD_DIR}/env.sh'." |