aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level0.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-30 18:03:26 -0600
committermegamage <none@none>2008-12-30 18:03:26 -0600
commitd088021a507eadf0f985f2d6452bca8fc9714005 (patch)
treeee2ee3f62189689ad925cca3eb17b531871b5843 /src/game/Level0.cpp
parent8592e5606bf3d7342dc0c97df8d9e8a6206994a9 (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.cpp2
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;
}