Skip to content

Commit

Permalink
fix: yesterday 统计数据出错
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Nov 10, 2024
1 parent cf2c45f commit 7a8772f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/ApiStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class ApiStats {
hits: inst.server.centerStats.getLast30DaysHourlyStats().at(2)?.reduce((acc, d) => acc + d.hits, 0),
bytes: inst.server.centerStats.getLast30DaysHourlyStats().at(2)?.reduce((acc, d) => acc + d.bytes, 0)
},
rejected: RateLimiter.rejectedRequest.getLast30DaysHourlyStats().at(2),
rejected: RateLimiter.rejectedRequest.getLast30DaysHourlyStats().at(-2),
rank: inst.stats.sort((a, b) => ((b.getLast30DaysStats().at(-2)?.bytes || 0) - (a.getLast30DaysStats().at(-2)?.bytes || 0))).map((s, index) => {
const cluster = inst.clusters.find(c => c.clusterId === s.id);
if (!cluster) return null;
Expand Down

0 comments on commit 7a8772f

Please sign in to comment.