修改离线满10分钟清理玩家缓存
parent
860a126523
commit
4692f2804a
|
@ -46,7 +46,7 @@ public class UserManager {
|
|||
private static Map<Integer,Long> userMapPutTime = new ConcurrentHashMap<>(); //离线读入
|
||||
private static AtomicInteger login_f_num = new AtomicInteger(0);//登陆计数
|
||||
private static final int LOGIN_F_LIMIT = 100;//报警界限
|
||||
private static final long LIVE_TIME = 3 * 60 * 60 * 1000L;
|
||||
private static final long LIVE_TIME = 10 * 60 * 1000L;
|
||||
|
||||
public static void addUser(User user) {
|
||||
userMap.put(user.getId(), user);
|
||||
|
|
Loading…
Reference in New Issue