Changeset 19234 in josm


Ignore:
Timestamp:
2024-10-07T13:36:26+02:00 (12 hours ago)
Author:
taylor.smock
Message:

Fix #23951: Fix free in startup linux scripts when it is in a localized environment

Location:
trunk/native/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/native/linux/latest/usr/bin/josm-latest

    r19215 r19234  
    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
     61if [ "$(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}"
  • trunk/native/linux/tested/usr/bin/josm

    r19215 r19234  
    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
     61if [ "$(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}"
Note: See TracChangeset for help on using the changeset viewer.