🚸 improve: live threshold

This commit is contained in:
naiba 2021-01-04 10:51:57 +08:00
parent 503be7b83f
commit d0dd44bda9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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