auto-sync: 2026-05-28 12:25:40
This commit is contained in:
@@ -35,7 +35,8 @@ count_recent_429() {
|
||||
[ -f "$jsonl" ] || continue
|
||||
# 只看最近修改的文件(性能优化)
|
||||
local mtime
|
||||
mtime=$(stat -f %m "$jsonl" 2>/dev/null || stat -c %Y "$jsonl" 2>/dev/null)
|
||||
mtime=$(stat -f '%m' "$jsonl" 2>/dev/null | tr -d ' ' || stat -c '%Y' "$jsonl" 2>/dev/null | tr -d ' ')
|
||||
[ -z "$mtime" ] && continue
|
||||
local now=$(date +%s)
|
||||
local age=$(( now - mtime ))
|
||||
# 文件超过 CHECK_WINDOW 秒没修改就跳过
|
||||
|
||||
Reference in New Issue
Block a user