fix
This commit is contained in:
parent
16d4198364
commit
df78bb86f7
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue