auto-sync: 2026-05-28 12:25:40

This commit is contained in:
cfdaily
2026-05-28 12:25:40 +08:00
parent 69ed87f81c
commit 5937776c93
+2 -1
View File
@@ -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 秒没修改就跳过