Show More
@@ -156,7 +156,8 b' class progbar(object):' | |||||
156 | if topic not in self.topics: |
|
156 | if topic not in self.topics: | |
157 | self.topics.append(topic) |
|
157 | self.topics.append(topic) | |
158 | now = time.time() |
|
158 | now = time.time() | |
159 |
if now - self.lastprint > self.refresh |
|
159 | if (now - self.lastprint >= self.refresh | |
|
160 | and topic == self.topics[-1]): | |||
160 | self.lastprint = now |
|
161 | self.lastprint = now | |
161 | self.show(topic, pos, item, unit, total) |
|
162 | self.show(topic, pos, item, unit, total) | |
162 | return orig(topic, pos, item=item, unit=unit, total=total) |
|
163 | return orig(topic, pos, item=item, unit=unit, total=total) |
General Comments 0
You need to be logged in to leave comments.
Login now