Merge pull request #165 from samply/fix/useCommonLanguage

Use always English Output of free command
This commit is contained in:
patrickskowronekdkfz 2024-03-15 11:51:37 +01:00 committed by GitHub
commit 8ea7da64b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ setHostname() {
# - limit resource count allowed in blaze to 1,25M per 4GB available system memory # - limit resource count allowed in blaze to 1,25M per 4GB available system memory
optimizeBlazeMemoryUsage() { optimizeBlazeMemoryUsage() {
if [ -z "$BLAZE_MEMORY_CAP" ]; then 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)); export BLAZE_MEMORY_CAP=$(("$system_memory_in_mb"/4));
fi fi
if [ -z "$BLAZE_RESOURCE_CACHE_CAP" ]; then if [ -z "$BLAZE_RESOURCE_CACHE_CAP" ]; then