fix(server): 数据截止仅统计 active key,停用 key 不拉慢全池水位

This commit is contained in:
2026-10-08 15:32:07 +08:00
parent b33fc64a28
commit 29e0317155
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -240,6 +240,7 @@ export function adminUsageRoutes() {
};
b.key_count += 1;
if (
v.status === "active" &&
v.log_synced_at &&
(b.cutoff === null || v.log_synced_at < b.cutoff)
) {