尝试减少误判离线
This commit is contained in:
parent
595297b21b
commit
87c6c71633
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user