From 2e30f0dab5636a8bf2f8fe0ec3b1d31b8a175136 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 31 Aug 2019 14:27:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=97=B4=E9=9A=94=E6=94=B9?= =?UTF-8?q?=E4=B8=BA30=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/GGListener.cc | 2 +- server/gameserver/app.cc | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server/gameserver/GGListener.cc b/server/gameserver/GGListener.cc index 993cd6b..a9a8df4 100644 --- a/server/gameserver/GGListener.cc +++ b/server/gameserver/GGListener.cc @@ -159,6 +159,6 @@ long long GGListener::GetSentBytesNum() void GGListener::OnListenError(int errorid) { - a8::XPrintf("GGListeneron_error %d %d", {type, errorid}); + a8::XPrintf("GGListeneron_error %d", {errorid}); App::Instance()->terminated = true; } diff --git a/server/gameserver/app.cc b/server/gameserver/app.cc index 338a944..3722e85 100755 --- a/server/gameserver/app.cc +++ b/server/gameserver/app.cc @@ -214,10 +214,7 @@ bool App::Init(int argc, char* argv[]) a8::UdpLog::Instance()->Info("gameserver starting instance_id:%d pid:%d", {instance_id, getpid()}); { - int perf_log_time = 1000 * 60 * 5; - if (getenv("is_dev_env")) { - perf_log_time = 1000 * 10; - } + int perf_log_time = 1000 * 30; a8::Timer::Instance()->AddRepeatTimer(perf_log_time, a8::XParams(), [] (const a8::XParams& param)