1
This commit is contained in:
parent
fb958c1a83
commit
d4ab89adfb
@ -108,13 +108,13 @@ void GameClientMgr::AddPendingAccount(const std::string& account_id, int socket_
|
|||||||
[] (const a8::XParams& param)
|
[] (const a8::XParams& param)
|
||||||
{
|
{
|
||||||
GameClientMgr::Instance()->pending_account_hash_.erase(param.sender);
|
GameClientMgr::Instance()->pending_account_hash_.erase(param.sender);
|
||||||
App::Instance()->perf.max_join_time = std::max(1000 * 10, App::Instance()->perf.max_join_time);
|
App::Instance()->perf.max_join_time = std::max((long long)1000 * 10, App::Instance()->perf.max_join_time);
|
||||||
},
|
},
|
||||||
&timer_attacher_.timer_list_
|
&timer_attacher_.timer_list_
|
||||||
);
|
);
|
||||||
pending_account_hash_[socket_handle] = std::make_tuple(
|
pending_account_hash_[socket_handle] = std::make_tuple(
|
||||||
account_id,
|
account_id,
|
||||||
socket_handle,
|
req_tick,
|
||||||
timer
|
timer
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ void MasterSvrMgr::RequestTargetServer(f8::MsgHdr& hdr, const std::string& team_
|
|||||||
if (req_handle_time > App::Instance()->perf.max_login_time) {
|
if (req_handle_time > App::Instance()->perf.max_login_time) {
|
||||||
App::Instance()->perf.max_login_time = req_handle_time;
|
App::Instance()->perf.max_login_time = req_handle_time;
|
||||||
}
|
}
|
||||||
GameClientMgr::Instance()->AddPendingAccount(param.param2, param.param1, param.param3);
|
GameClientMgr::Instance()->AddPendingAccount(param.param2.GetString(), param.param1, param.param3);
|
||||||
};
|
};
|
||||||
a8::Timer::Instance()->AddDeadLineTimerAndAttach(1000 * 10,
|
a8::Timer::Instance()->AddDeadLineTimerAndAttach(1000 * 10,
|
||||||
a8::XParams()
|
a8::XParams()
|
||||||
|
@ -5,8 +5,8 @@ struct PerfMonitor
|
|||||||
int max_run_delay_time = 0;
|
int max_run_delay_time = 0;
|
||||||
int max_dispatchmsg_time = 0;
|
int max_dispatchmsg_time = 0;
|
||||||
int max_timer_idle = 0;
|
int max_timer_idle = 0;
|
||||||
int max_login_time = 0;
|
long long max_login_time = 0;
|
||||||
int max_join_time = 0;
|
long long max_join_time = 0;
|
||||||
long long out_data_size = 0;
|
long long out_data_size = 0;
|
||||||
long long in_data_size = 0;
|
long long in_data_size = 0;
|
||||||
long long read_count = 0;
|
long long read_count = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user