This commit is contained in:
boufni95 2025-01-09 17:56:23 +00:00
parent 95dba81d77
commit d484f58224

View file

@ -82,10 +82,7 @@ export default class Handler {
past10m: { errors: 0, total: 0, from_unix: nowUnix - 60 * 10 },
past1m: { errors: 0, total: 0, from_unix: nowUnix - 60 },
}
if (last24h.length === 0) {
return stats
}
for (let i = last24h.length; i >= 0; i--) {
for (let i = last24h.length - 1; i >= 0; i--) {
const e = last24h[i]
console.log(e)
if (e.ts < stats.past24h.from_unix) {