equal
deleted
inserted
replaced
155 self.resetstate() |
155 self.resetstate() |
156 else: |
156 else: |
157 if topic not in self.topics: |
157 if topic not in self.topics: |
158 self.topics.append(topic) |
158 self.topics.append(topic) |
159 now = time.time() |
159 now = time.time() |
160 if now - self.lastprint > 0.1 and topic == self.topics[-1]: |
160 if now - self.lastprint > self.refresh and topic == self.topics[-1]: |
161 self.lastprint = now |
161 self.lastprint = now |
162 self.show(topic, pos, item, unit, total) |
162 self.show(topic, pos, item, unit, total) |
163 return orig(topic, pos, item=item, unit=unit, total=total) |
163 return orig(topic, pos, item=item, unit=unit, total=total) |
164 |
164 |
165 def write(self, orig, *args): |
165 def write(self, orig, *args): |