mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
🚸 improve: live threshold
This commit is contained in:
parent
503be7b83f
commit
d0dd44bda9
@ -178,7 +178,7 @@
|
||||
if (!ns.Host) ns.live = false
|
||||
else {
|
||||
const lastActive = new Date(ns.LastActive).getTime()
|
||||
if (Date.now() - lastActive > 10 * 1000) {
|
||||
if (Date.now() - lastActive > 20 * 1000) {
|
||||
ns.live = false
|
||||
} else {
|
||||
ns.live = true
|
||||
|
@ -244,7 +244,7 @@
|
||||
if (!ns.Host) ns.live = false
|
||||
else {
|
||||
const lastActive = new Date(ns.LastActive).getTime()
|
||||
if (Date.now() - lastActive > 10 * 1000) {
|
||||
if (Date.now() - lastActive > 20 * 1000) {
|
||||
ns.live = false
|
||||
} else {
|
||||
ns.live = true
|
||||
|
Loading…
Reference in New Issue
Block a user