From 140ec674a040bdc04086472330a289c2d15ecc65 Mon Sep 17 00:00:00 2001 From: maximius Date: Mon, 14 Sep 2009 16:49:23 -0700 Subject: Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi) --HG-- branch : trunk --- src/trinitycore/Master.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/trinitycore') diff --git a/src/trinitycore/Master.cpp b/src/trinitycore/Master.cpp index 94c5a4cc023..b8c51461a67 100644 --- a/src/trinitycore/Master.cpp +++ b/src/trinitycore/Master.cpp @@ -307,6 +307,10 @@ int Master::Run() uint32 socketSelecttime = sWorld.getConfig(CONFIG_SOCKET_SELECTTIME); + // maximum counter for next ping + uint32 numLoops = (sConfig.GetIntDefault( "MaxPingTime", 30 ) * (MINUTE * 1000000 / socketSelecttime)); + uint32 loopCounter = 0; + ///- Start up freeze catcher thread if(uint32 freeze_delay = sConfig.GetIntDefault("MaxCoreStuckTime", 0)) { -- cgit v1.2.3