This commit is contained in:
aozhiwei 2019-12-12 17:04:21 +08:00
parent fb958c1a83
commit d4ab89adfb
3 changed files with 5 additions and 5 deletions

View File

@ -108,13 +108,13 @@ void GameClientMgr::AddPendingAccount(const std::string& account_id, int socket_
[] (const a8::XParams& param)
{
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_
);
pending_account_hash_[socket_handle] = std::make_tuple(
account_id,
socket_handle,
req_tick,
timer
);
}

View File

@ -136,7 +136,7 @@ void MasterSvrMgr::RequestTargetServer(f8::MsgHdr& hdr, const std::string& team_
if (req_handle_time > App::Instance()->perf.max_login_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::XParams()

View File

@ -5,8 +5,8 @@ struct PerfMonitor
int max_run_delay_time = 0;
int max_dispatchmsg_time = 0;
int max_timer_idle = 0;
int max_login_time = 0;
int max_join_time = 0;
long long max_login_time = 0;
long long max_join_time = 0;
long long out_data_size = 0;
long long in_data_size = 0;
long long read_count = 0;