💄 improve: 优化前端在线规则

This commit is contained in:
naiba 2020-12-23 20:22:04 +08:00
parent 51f820629c
commit bb3829462d
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@
if (!ns.Host) ns.live = false if (!ns.Host) ns.live = false
else { else {
const lastActive = new Date(ns.LastActive).getTime() const lastActive = new Date(ns.LastActive).getTime()
if (Date.now() - lastActive > 5 * 1000) { if (Date.now() - lastActive > 10 * 1000) {
ns.live = false ns.live = false
} else { } else {
ns.live = true ns.live = true

View File

@ -246,7 +246,7 @@
if (!ns.Host) ns.live = false if (!ns.Host) ns.live = false
else { else {
const lastActive = new Date(ns.LastActive).getTime() const lastActive = new Date(ns.LastActive).getTime()
if (Date.now() - lastActive > 5 * 1000) { if (Date.now() - lastActive > 10 * 1000) {
ns.live = false ns.live = false
} else { } else {
ns.live = true ns.live = true