deb
This commit is contained in:
parent
be19204f6c
commit
95dba81d77
2 changed files with 1 additions and 1 deletions
|
|
@ -87,6 +87,7 @@ export default class Handler {
|
||||||
}
|
}
|
||||||
for (let i = last24h.length; i >= 0; i--) {
|
for (let i = last24h.length; i >= 0; i--) {
|
||||||
const e = last24h[i]
|
const e = last24h[i]
|
||||||
|
console.log(e)
|
||||||
if (e.ts < stats.past24h.from_unix) {
|
if (e.ts < stats.past24h.from_unix) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ export default class {
|
||||||
}
|
}
|
||||||
|
|
||||||
pushToCache = (ok: boolean) => {
|
pushToCache = (ok: boolean) => {
|
||||||
console.log("pushing to cache", ok)
|
|
||||||
const now = Math.floor(Date.now() / 1000)
|
const now = Math.floor(Date.now() / 1000)
|
||||||
this.rotateCache(now)
|
this.rotateCache(now)
|
||||||
if (this.last24hCache.length === 0) {
|
if (this.last24hCache.length === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue