From dafc53615de5ac6c23175655ccb4ba92f7e67365 Mon Sep 17 00:00:00 2001 From: the Sane <3657071+the-sane@users.noreply.github.com> Date: Sun, 14 Nov 2021 12:13:10 -0500 Subject: [PATCH] Display actual mapcount and file limits on system --- lug-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index fd3e1f4..89a811f 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -637,7 +637,7 @@ mapcount_check() { # Add to the results and actions arrays if [ "$mapcount" -ge 16777216 ]; then # All good - preflight_pass+=("vm.max_map_count is set to at least 16777216.") + preflight_pass+=("vm.max_map_count is set to $mapcount.") elif grep -E -x -q "vm.max_map_count" /etc/sysctl.conf /etc/sysctl.d/* 2>/dev/null; then # Was it supposed to have been set by sysctl? preflight_fail+=("vm.max_map_count is configured to at least 16777216 but the setting has not been loaded by your system.") @@ -702,7 +702,7 @@ filelimit_check() { # Add to the results and actions arrays if [ "$filelimit" -ge 524288 ]; then # All good - preflight_pass+=("Hard open file descriptors limit is set to at least 524288.") + preflight_pass+=("Hard open file descriptors limit is set to $filelimit.") else # The file limit should be changed preflight_fail+=("Your hard open file descriptors limit is $filelimit\nand should be set to at least 524288\nto increase the maximum number of open files.")