auto-sync: 2026-05-28 12:41:30
This commit is contained in:
@@ -52,8 +52,9 @@ count_recent_429() {
|
|||||||
[ "$fsize" -lt 100 ] && continue
|
[ "$fsize" -lt 100 ] && continue
|
||||||
|
|
||||||
# 搜索 429 错误:errorCode=1305 或 errorMessage 含 "429"
|
# 搜索 429 错误:errorCode=1305 或 errorMessage 含 "429"
|
||||||
local found
|
local found=0
|
||||||
found=$(grep -c '"errorCode".*"1305"\|"errorMessage".*"429"' "$jsonl" 2>/dev/null || echo 0)
|
found=$(grep -c '"errorCode".*"1305"\|"errorMessage".*"429"' "$jsonl" 2>/dev/null || true)
|
||||||
|
[ -z "$found" ] && found=0
|
||||||
# 进一步过滤:只统计时间窗口内的
|
# 进一步过滤:只统计时间窗口内的
|
||||||
if [ "$found" -gt 0 ]; then
|
if [ "$found" -gt 0 ]; then
|
||||||
local recent
|
local recent
|
||||||
|
|||||||
Reference in New Issue
Block a user