diff options
author | megamage <none@none> | 2008-12-30 18:03:26 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-30 18:03:26 -0600 |
commit | d088021a507eadf0f985f2d6452bca8fc9714005 (patch) | |
tree | ee2ee3f62189689ad925cca3eb17b531871b5843 /src/game/Level0.cpp | |
parent | 8592e5606bf3d7342dc0c97df8d9e8a6206994a9 (diff) |
*Write update time diff into log to display server performance.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level0.cpp')
-rw-r--r-- | src/game/Level0.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Level0.cpp b/src/game/Level0.cpp index db319215ded..75f7a257caf 100644 --- a/src/game/Level0.cpp +++ b/src/game/Level0.cpp @@ -93,6 +93,7 @@ bool ChatHandler::HandleServerInfoCommand(const char* /*args*/) uint32 maxActiveClientsNum = sWorld.GetMaxActiveSessionCount(); uint32 maxQueuedClientsNum = sWorld.GetMaxQueuedSessionCount(); std::string str = secsToTimeString(sWorld.GetUptime()); + uint32 updateTime = sWorld.GetUpdateTime(); PSendSysMessage(_FULLVERSION); //char const* full; //if(m_session) @@ -105,6 +106,7 @@ bool ChatHandler::HandleServerInfoCommand(const char* /*args*/) //PSendSysMessage(LANG_USING_WORLD_DB,sWorld.GetDBVersion()); PSendSysMessage(LANG_CONNECTED_USERS, activeClientsNum, maxActiveClientsNum, queuedClientsNum, maxQueuedClientsNum); PSendSysMessage(LANG_UPTIME, str.c_str()); + PSendSysMessage("Update time diff: %u.", updateTime); return true; } |