auto-sync: 2026-06-02 22:07:31

This commit is contained in:
cfdaily
2026-06-02 22:07:31 +08:00
parent 58a5d9ec5e
commit f4e7d9ce85
+5 -1
View File
@@ -184,7 +184,11 @@ count_rules() {
# R3: 含 "rate_limit" 或含 "429"
local r3_matched
r3_matched=$(echo "$recent_lines" | grep -E 'rate_limit|429' || true)
R3_COUNT=$(echo "$r3_matched" | _safe_count 'rate_limit|429')
if [ -n "$r3_matched" ]; then
R3_COUNT=$(echo "$r3_matched" | wc -l | tr -d '[:space:]')
else
R3_COUNT=0
fi
}
# === 主逻辑 ===