From 30b224d5b1d1c28ed68285d6ef4cbfd45bacc673 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sun, 4 Mar 2012 00:20:22 -0500 Subject: [PATCH] only output cache stats with -p1 --- overviewer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/overviewer.py b/overviewer.py index af960e8..71a4f36 100755 --- a/overviewer.py +++ b/overviewer.py @@ -438,9 +438,10 @@ dir but you forgot to put quotes around the directory, since it contains spaces. dispatch.close() assetMrg.finalize(tilesets) - logging.debug("Final cache stats:") - for c in caches: - logging.debug("\t%s: %s hits, %s misses", c.__class__.__name__, c.hits, c.misses) + if config['processes'] == 1: + logging.debug("Final cache stats:") + for c in caches: + logging.debug("\t%s: %s hits, %s misses", c.__class__.__name__, c.hits, c.misses) return 0 def list_worlds():