Skip to content

Commit

Permalink
Merge pull request #165 from samply/fix/useCommonLanguage
Browse files Browse the repository at this point in the history
Use always English Output of free command
  • Loading branch information
patrickskowronekdkfz authored Mar 15, 2024
2 parents a87e9b9 + 6217e28 commit 8ea7da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ea7da6

Please sign in to comment.