Skip to content

Commit

Permalink
fix: compare RAM requirement to system's available RAM
Browse files Browse the repository at this point in the history
allow numbers with decimal points to be compared
  • Loading branch information
dgibbs64 committed Dec 10, 2023
1 parent e90a68a commit c60ecb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/modules/check_system_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fi

# If the game or engine has a minimum RAM Requirement, compare it to system's available RAM.
if [ "${ramrequirementgb}" ]; then
if [ "${physmemtotalgb}" -lt "${ramrequirementgb}" ]; then
if (($(echo "${physmemtotalgb} < ${ramrequirementgb}" | bc -l))); then
fn_print_dots "Checking RAM"
fn_print_warn_nl "Checking RAM: ${ramrequirementgb}G required, ${physmemtotal} available"
echo "* ${gamename} server may fail to run or experience poor performance."
Expand Down

0 comments on commit c60ecb3

Please sign in to comment.