From e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 4 Mar 2012 16:18:32 +0000 Subject: Lowered the amount of logging while converting chunks git-svn-id: http://mc-server.googlecode.com/svn/trunk@362 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WSSCompact.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/WSSCompact.cpp b/source/WSSCompact.cpp index 162a7d8e5..ff514b209 100644 --- a/source/WSSCompact.cpp +++ b/source/WSSCompact.cpp @@ -397,11 +397,18 @@ void cWSSCompact::cPAKFile::UpdateChunk1To2() LOGINFO("Updating \"%s\" version 1 to version 2", m_FileName.c_str() ); int Offset = 0; AString NewDataContents; + int ChunksConverted = 0; for (sChunkHeaders::iterator itr = m_ChunkHeaders.begin(); itr != m_ChunkHeaders.end(); ++itr) { sChunkHeader * Header = *itr; - LOGINFO("Updating \"%s\" version 1 to version 2: Updating chunk [%d, %d]", m_FileName.c_str(), Header->m_ChunkX, Header->m_ChunkZ ); + + if( ChunksConverted % 32 == 0 ) + { + LOGINFO("Updating \"%s\" version 1 to version 2: %d\%", m_FileName.c_str(), (ChunksConverted*100) / m_ChunkHeaders.size() ); + } + ChunksConverted++; + AString Data; int UncompressedSize = Header->m_UncompressedSize; -- cgit v1.2.3