尝试减少误判离线

This commit is contained in:
ZZ 2021-11-22 11:26:52 +08:00
parent 595297b21b
commit 87c6c71633

View File

@ -25,7 +25,7 @@ public class HBCheckTask {
Map<String, Object> cacheGun = REDIS.getCacheMap(gunkey);
Long hbtime = (Long) cacheGun.get("hbtime");
hbtime = hbtime == null ? 0 : hbtime;
if ((now - hbtime) > 60000) {
if ((now - hbtime) > 75000) {
cacheGun.put("statusInt", OFF_LINE);
cacheGun.put("status", DISCONNECTED);
REDIS.setCacheMap(gunkey, cacheGun);