FIX: Remove debug message interfering with server capacity calculation
The echo statement to stderr was being captured as the function's return value when php-optimizer.sh ran: $(calculate_server_memory_capacity 2>&1) This caused all capacity calculations to fail with 'integer expression expected' errors.
This commit is contained in:
@@ -917,8 +917,6 @@ convert_to_bytes() {
|
||||
# Usage: calculate_server_memory_capacity
|
||||
# Returns: total_required_mb|total_ram_mb|percentage|status|details
|
||||
calculate_server_memory_capacity() {
|
||||
echo "Analyzing server-wide PHP-FPM memory capacity..." >&2
|
||||
|
||||
# Get total system memory
|
||||
local total_ram_mb
|
||||
total_ram_mb=$(free -m | awk '/^Mem:/ {print $2}')
|
||||
|
||||
Reference in New Issue
Block a user