This commit is contained in:
boufni95 2025-01-09 17:46:21 +00:00
parent 16d4198364
commit df78bb86f7

View file

@ -82,6 +82,9 @@ 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--) {
const e = last24h[i]
if (e.ts < stats.past24h.from_unix) {