From ad2698a24d47257155d54e96ca11506c8f5002c2 Mon Sep 17 00:00:00 2001 From: Mark Penner Date: Sat, 15 Oct 2022 18:46:58 -0700 Subject: [PATCH] Update php-fpm-healthcheck `-gt` is strictly greater than. Therefore expected is `<=` --- php-fpm-healthcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-fpm-healthcheck b/php-fpm-healthcheck index cd69742..c23aeef 100755 --- a/php-fpm-healthcheck +++ b/php-fpm-healthcheck @@ -73,7 +73,7 @@ check_fpm_health_by() { VALUE_EXPECTED="$2"; VALUE_ACTUAL=$(echo "$FPM_STATUS" | grep "^$OPTION:" | cut -d: -f2 | sed 's/ //g') - if test "$VERBOSE" = 1; then printf "'%s' value '%s' and expected is less than '%s'\\n" "$OPTION" "$VALUE_ACTUAL" "$VALUE_EXPECTED"; fi; + if test "$VERBOSE" = 1; then printf "'%s' value '%s' and expected is less than or equal to '%s'\\n" "$OPTION" "$VALUE_ACTUAL" "$VALUE_EXPECTED"; fi; if test "$VALUE_ACTUAL" -gt "$VALUE_EXPECTED"; then >&2 printf "'%s' value '%s' is greater than expected '%s'\\n" "$OPTION" "$VALUE_ACTUAL" "$VALUE_EXPECTED";