Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
break
l = len(buf)
- p.update_increment(l)
+ p.increment(l)
def _get_content_length(self, response):
s = response.getheader("Content-Length")
chunk_size = CHUNK_SIZE
# Update progressbar
- p.update_increment(len(chunk))
+ p.increment(len(chunk))
# Catch any unhandled exception here, tell the hub to delete the
# file and raise the original exception
self.fd.write(self._format_line())
self.fd.write("\r")
- def update_increment(self, value):
+ def increment(self, value):
return self.update(self.value_cur + value)
def _need_update(self):