Skip to content
Myr

Merge pull request #1012 from rpgraham84/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes issue #447

authored by David Lord · committed by GitHub · parents b10c52a, a112bb2 · Browse files · 1 file+10 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−1 removed

  • other:+10 added−1 removed

1 file+10 added−1 removed

modified:click/_termui_impl.py+10 added-1 removed
243 unmodified lines
244 if (time.time() - self.last_eta) < 1.0:245 return246247 self.last_eta = time.time()248 self.avg = self.avg[-6:] + [-(self.start - time.time()) / (self.pos)]248249 # self.avg is a rolling list of length <= 7 of steps where steps are250 # defined as time elapsed divided by the total progress through251 # self.length.252 if self.pos:253 step = (time.time() - self.start) / self.pos254 else:255 step = time.time() - self.start256257 self.avg = self.avg[-6:] + [step]258259 self.eta_known = self.length_known260261 def update(self, n_steps):262 self.make_step(n_steps)
324 unmodified lines