Fix: Double arithmetic syntax error in generate_comparison_report (line 2073)
This commit is contained in:
@@ -40,14 +40,14 @@ if [ "$MTA" = "exim" ]; then
|
||||
print_header "Queue Summary"
|
||||
|
||||
# Exim: exim -bpc returns just the number
|
||||
queue_count=$(eval "$SYS_MAIL_CMD_QUEUE_COUNT")
|
||||
queue_count=$(bash -c "$SYS_MAIL_CMD_QUEUE_COUNT" 2>/dev/null || echo "0")
|
||||
|
||||
if [ "$queue_count" -gt 0 ] 2>/dev/null; then
|
||||
print_warning "$queue_count messages in queue"
|
||||
echo ""
|
||||
|
||||
# Cache queue list - single execution for all operations
|
||||
queue_list=$(eval "$SYS_MAIL_CMD_QUEUE_LIST")
|
||||
queue_list=$(bash -c "$SYS_MAIL_CMD_QUEUE_LIST" 2>/dev/null || echo "")
|
||||
|
||||
print_header "Recent Queue Messages (last 20)"
|
||||
echo "$queue_list" | head -20
|
||||
@@ -74,7 +74,7 @@ elif [ "$MTA" = "postfix" ]; then
|
||||
print_header "Queue Summary"
|
||||
|
||||
# Postfix: mailq | tail -1 returns "-- N Kbytes in M Requests."
|
||||
queue_summary=$(eval "$SYS_MAIL_CMD_QUEUE_COUNT")
|
||||
queue_summary=$(bash -c "$SYS_MAIL_CMD_QUEUE_COUNT" 2>/dev/null || echo "")
|
||||
print_info "$queue_summary"
|
||||
|
||||
# Extract message count from summary line (last number is always message count)
|
||||
@@ -89,7 +89,7 @@ elif [ "$MTA" = "postfix" ]; then
|
||||
echo ""
|
||||
|
||||
# Cache queue list - single execution for all operations
|
||||
queue_list=$(eval "$SYS_MAIL_CMD_QUEUE_LIST")
|
||||
queue_list=$(bash -c "$SYS_MAIL_CMD_QUEUE_LIST" 2>/dev/null || echo "")
|
||||
|
||||
print_header "Queue Details (first 50)"
|
||||
echo "$queue_list" | head -50
|
||||
@@ -116,7 +116,7 @@ elif [ "$MTA" = "sendmail" ]; then
|
||||
print_header "Queue Summary"
|
||||
|
||||
# Sendmail: mailq | tail -1 returns "-- N Kbytes in M Requests."
|
||||
queue_summary=$(eval "$SYS_MAIL_CMD_QUEUE_COUNT")
|
||||
queue_summary=$(bash -c "$SYS_MAIL_CMD_QUEUE_COUNT" 2>/dev/null || echo "")
|
||||
print_info "$queue_summary"
|
||||
|
||||
# Extract message count from summary line (last number is always message count)
|
||||
@@ -131,7 +131,7 @@ elif [ "$MTA" = "sendmail" ]; then
|
||||
echo ""
|
||||
|
||||
# Cache queue list - single execution for all operations
|
||||
queue_list=$(eval "$SYS_MAIL_CMD_QUEUE_LIST")
|
||||
queue_list=$(bash -c "$SYS_MAIL_CMD_QUEUE_LIST" 2>/dev/null || echo "")
|
||||
|
||||
print_header "Queue Details (first 50)"
|
||||
echo "$queue_list" | head -50
|
||||
|
||||
Reference in New Issue
Block a user