From 6217e285902e64589289c293eaeda89d3fff2c2a Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Fri, 15 Mar 2024 11:48:25 +0100 Subject: [PATCH] fix: use always english output of free command --- lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index ecd330f..b4dc876 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -163,7 +163,7 @@ setHostname() { # - limit resource count allowed in blaze to 1,25M per 4GB available system memory optimizeBlazeMemoryUsage() { if [ -z "$BLAZE_MEMORY_CAP" ]; then - system_memory_in_mb=$(free -m | grep 'Mem:' | awk '{print $2}'); + system_memory_in_mb=$(LC_ALL=C free -m | grep 'Mem:' | awk '{print $2}'); export BLAZE_MEMORY_CAP=$(("$system_memory_in_mb"/4)); fi if [ -z "$BLAZE_RESOURCE_CACHE_CAP" ]; then