Show More
@@ -100,6 +100,7 b' class progbar(object):' | |||||
100 | self.printed = False |
|
100 | self.printed = False | |
101 | self.lastprint = time.time() + float(self.ui.config( |
|
101 | self.lastprint = time.time() + float(self.ui.config( | |
102 | 'progress', 'delay', default=3)) |
|
102 | 'progress', 'delay', default=3)) | |
|
103 | self.curtopic = None | |||
103 | self.lasttopic = None |
|
104 | self.lasttopic = None | |
104 | self.indetcount = 0 |
|
105 | self.indetcount = 0 | |
105 | self.refresh = float(self.ui.config( |
|
106 | self.refresh = float(self.ui.config( | |
@@ -255,6 +256,7 b' class progbar(object):' | |||||
255 | self.startvals[topic] = pos |
|
256 | self.startvals[topic] = pos | |
256 | self.topics.append(topic) |
|
257 | self.topics.append(topic) | |
257 | self.topicstates[topic] = pos, item, unit, total |
|
258 | self.topicstates[topic] = pos, item, unit, total | |
|
259 | self.curtopic = topic | |||
258 | if now - self.lastprint >= self.refresh and self.topics: |
|
260 | if now - self.lastprint >= self.refresh and self.topics: | |
259 | if (self.lasttopic is None # first time we printed |
|
261 | if (self.lasttopic is None # first time we printed | |
260 | # not a topic change |
|
262 | # not a topic change |
General Comments 0
You need to be logged in to leave comments.
Login now