[pypy-svn] r32957 - pypy/dist/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Fri Oct 6 15:54:19 CEST 2006
Author: antocuni
Date: Fri Oct 6 15:54:17 2006
New Revision: 32957
Modified:
pypy/dist/pypy/translator/cli/gencli.py
Log:
Make the output of gencli a bit shorter.
Modified: pypy/dist/pypy/translator/cli/gencli.py
==============================================================================
--- pypy/dist/pypy/translator/cli/gencli.py (original)
+++ pypy/dist/pypy/translator/cli/gencli.py Fri Oct 6 15:54:17 2006
@@ -76,10 +76,10 @@
self.db._rendered_nodes.add(node)
n+=1
- total = len(self.db._pending_nodes) + n
- log.graphs('Rendered %d/%d (approx. %.2f%%)' %\
- (n, total, n*100.0/total))
-
+ if (n%100) == 0:
+ total = len(self.db._pending_nodes) + n
+ log.graphs('Rendered %d/%d (approx. %.2f%%)' %\
+ (n, total, n*100.0/total))
def fix_names(self):
# it could happen that two distinct graph have the same name;
More information about the Pypy-commit
mailing list