fix
This commit is contained in:
parent
95dba81d77
commit
d484f58224
1 changed files with 1 additions and 4 deletions
|
|
@ -82,10 +82,7 @@ export default class Handler {
|
||||||
past10m: { errors: 0, total: 0, from_unix: nowUnix - 60 * 10 },
|
past10m: { errors: 0, total: 0, from_unix: nowUnix - 60 * 10 },
|
||||||
past1m: { errors: 0, total: 0, from_unix: nowUnix - 60 },
|
past1m: { errors: 0, total: 0, from_unix: nowUnix - 60 },
|
||||||
}
|
}
|
||||||
if (last24h.length === 0) {
|
for (let i = last24h.length - 1; i >= 0; i--) {
|
||||||
return stats
|
|
||||||
}
|
|
||||||
for (let i = last24h.length; i >= 0; i--) {
|
|
||||||
const e = last24h[i]
|
const e = last24h[i]
|
||||||
console.log(e)
|
console.log(e)
|
||||||
if (e.ts < stats.past24h.from_unix) {
|
if (e.ts < stats.past24h.from_unix) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue