176
190
def update(self, msg, current_cnt=None, total_cnt=None):
177
191
"""Update and redraw progress bar."""
179
200
# save these for the tick() function
181
202
self.last_cnt = current_cnt
182
203
self.last_total = total_cnt
192
208
if self.show_eta and self.start_time and total_cnt:
209
eta = get_eta(self.start_time, current_cnt, total_cnt,
194
211
eta_str = " " + str_tdelta(eta)