Added total chunk count to webadmin
git-svn-id: http://mc-server.googlecode.com/svn/trunk@248 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -283,3 +283,17 @@ void cRoot::AuthenticateUser(const AString & iUserName)
|
||||
|
||||
|
||||
|
||||
|
||||
int cRoot::GetTotalChunkCount(void)
|
||||
{
|
||||
int res = 0;
|
||||
for ( WorldMap::iterator itr = m_pState->WorldsByName.begin(); itr != m_pState->WorldsByName.end(); ++itr )
|
||||
{
|
||||
res += itr->second->GetNumChunks();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user