From 6ce28c7d1ab8747a77eb1ce60c8aa4d4a4bc4ee7 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 13 Nov 2010 04:39:19 -1000 Subject: [PATCH] added per chunk average, removed spam --- mclevel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mclevel.py b/mclevel.py index ace29d1..5f8c93f 100644 --- a/mclevel.py +++ b/mclevel.py @@ -2696,12 +2696,13 @@ class MCInfdevOldLevel(MCLevel): filterTable = self.conversionTableFromLevel(sourceLevel); + start = datetime.now(); destChunks = self.getChunkSlices(BoundingBox(destinationPoint, sourceBox.size)) i = 0; for (chunk, slices, point) in destChunks: i+= 1; - if i % 100 != 0: + if i % 100 == 0: info("Chunk {0}...".format(i)) blocks = chunk.Blocks[slices]; @@ -2736,6 +2737,8 @@ class MCInfdevOldLevel(MCLevel): chunk.chunkChanged(); chunk.compress(); + d = datetime.now()-start; + info( "Finished in {0} ({1} per chunk)".format(d, d / i) ) #chunk.compress(); #xxx find out why this trashes changes to tile entities def copyBlocksFrom(self, sourceLevel, sourceBox, destinationPoint, blocksToCopy = None):