Skip to content

Commit eba1eca

Browse files
author
taylor.smock
committed
Fix #23951: Fix free in startup linux scripts when it is in a localized environment
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19234 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent ddd4c1f commit eba1eca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

native/linux/latest/usr/bin/josm-latest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ -f "/etc/default/${JOSM_VERSION}" ]; then
5858
fi
5959

6060
# If there is more than 8G ram, we can use up to 75% of the memory while still leaving 2G for other things.
61-
if [ "$(free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then
61+
if [ "$(LC_ALL=C LANG=C free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then
6262
# But don't set anything if JAVA_OPTS is already set.
6363
JAVA_OPTS="${JAVA_OPTS:=-XX:MaxRAMPercentage=75.0 -Xms256m}"
6464
fi

native/linux/tested/usr/bin/josm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ -f "/etc/default/${JOSM_VERSION}" ]; then
5858
fi
5959

6060
# If there is more than 8G ram, we can use up to 75% of the memory while still leaving 2G for other things.
61-
if [ "$(free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then
61+
if [ "$(LC_ALL=C LANG=C free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then
6262
# But don't set anything if JAVA_OPTS is already set.
6363
JAVA_OPTS="${JAVA_OPTS:=-XX:MaxRAMPercentage=75.0 -Xms256m}"
6464
fi

0 commit comments

Comments
 (0)