0

only output cache stats with -p1

This commit is contained in:
Andrew Brown
2012-03-04 00:20:22 -05:00
parent 3bb14f01e4
commit 30b224d5b1

View File

@@ -438,9 +438,10 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
dispatch.close() dispatch.close()
assetMrg.finalize(tilesets) assetMrg.finalize(tilesets)
logging.debug("Final cache stats:") if config['processes'] == 1:
for c in caches: logging.debug("Final cache stats:")
logging.debug("\t%s: %s hits, %s misses", c.__class__.__name__, c.hits, c.misses) for c in caches:
logging.debug("\t%s: %s hits, %s misses", c.__class__.__name__, c.hits, c.misses)
return 0 return 0
def list_worlds(): def list_worlds():