summaryrefslogtreecommitdiffstats
path: root/core/modules/vbox-src
diff options
context:
space:
mode:
authorJonathan Bauer2021-07-12 13:11:50 +0200
committerJonathan Bauer2021-07-12 13:11:50 +0200
commit174c5d96716c0712ecb227212877a2277a24ed57 (patch)
tree0bc093a5dd072587e6b1509a67aa6d28881e9158 /core/modules/vbox-src
parentModule list: List var needs to be global (diff)
downloadmltk-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.build2
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'."