Skip to content

Commit

Permalink
update online threshold, fix refresh bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr authored Mar 19, 2024
1 parent 459daf6 commit d356d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
const MONITOR =
"abcde937081142db0d50d29bf92792d4ee9b3d79a83c483453171a6004711832";
const ONLINE_THRESHOLD = Math.round(Date.now() / 1000) - 60 * 60 * 24;
const ONLINE_THRESHOLD = Math.round(Date.now() / 1000) - 60 * 60 * 2;
let currentRelayModal = null;
let currentGenericModal = null;
Expand Down Expand Up @@ -101,7 +101,7 @@
.filter(
(v, i, a) => a.findIndex((t) => t.dTag === v.dTag) === i,
)
.filter( ev => ev.created_at > Math.round(Date.now()/1000)-ONLINE_THRESHOLD )
.filter( ev => ev.created_at > ONLINE_THRESHOLD )
});
}
};
Expand Down

0 comments on commit d356d4f

Please sign in to comment.