From e1a3b1cf901c40aa06d292c8e7f5411c68915896 Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 23 Apr 2026 18:39:17 -0400 Subject: [PATCH] Fix: Remove unnecessary process substitution in analyze_time_series() Line 1644: Changed from process substitution to direct file input - From: }' "$TEMP_DIR/attack_vectors_raw.txt" <(cat "$TEMP_DIR/parsed_logs.txt") | sort - To: }' "$TEMP_DIR/attack_vectors_raw.txt" "$TEMP_DIR/parsed_logs.txt" | sort - Eliminates unnecessary pipe and subshell for efficiency This is the final efficiency improvement in the series of bot-analyzer fixes. --- modules/security/bot-analyzer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/security/bot-analyzer.sh b/modules/security/bot-analyzer.sh index 07eec79..b0e23f9 100755 --- a/modules/security/bot-analyzer.sh +++ b/modules/security/bot-analyzer.sh @@ -1641,7 +1641,7 @@ analyze_time_series() { hour = ts[4] print hour } - }' "$TEMP_DIR/attack_vectors_raw.txt" <(cat "$TEMP_DIR/parsed_logs.txt") | sort | uniq -c > "$TEMP_DIR/hourly_attack_traffic.txt" + }' "$TEMP_DIR/attack_vectors_raw.txt" "$TEMP_DIR/parsed_logs.txt" | sort | uniq -c > "$TEMP_DIR/hourly_attack_traffic.txt" fi print_success "Time-series analysis complete"