changeset 10462:a94804a8087d stable

progress: make use of progress.refresh
author Patrick Mezard <pmezard@gmail.com>
date Sun, 14 Feb 2010 13:58:30 +0100
parents 0add1e265ac2
children 5ddde896a19d
files hgext/progress.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/progress.py	Sun Feb 14 13:29:11 2010 +0100
+++ b/hgext/progress.py	Sun Feb 14 13:58:30 2010 +0100
@@ -157,7 +157,7 @@
             if topic not in self.topics:
                 self.topics.append(topic)
             now = time.time()
-            if now - self.lastprint > 0.1 and topic == self.topics[-1]:
+            if now - self.lastprint > self.refresh and topic == self.topics[-1]:
                 self.lastprint = now
                 self.show(topic, pos, item, unit, total)
         return orig(topic, pos, item=item, unit=unit, total=total)