Show More
@@ -152,6 +152,9 b" coreconfigitem('progress', 'assume-tty'," | |||
|
152 | 152 | coreconfigitem('progress', 'clear-complete', |
|
153 | 153 | default=True, |
|
154 | 154 | ) |
|
155 | coreconfigitem('progress', 'estimate', | |
|
156 | default=2, | |
|
157 | ) | |
|
155 | 158 | coreconfigitem('server', 'bundle1', |
|
156 | 159 | default=True, |
|
157 | 160 | ) |
@@ -217,7 +217,7 b' class progbar(object):' | |||
|
217 | 217 | elapsed = now - self.starttimes[topic] |
|
218 | 218 | # experimental config: progress.estimate |
|
219 | 219 | if elapsed > float( |
|
220 |
self.ui.config('progress', 'estimate' |
|
|
220 | self.ui.config('progress', 'estimate')): | |
|
221 | 221 | seconds = (elapsed * (target - delta)) // delta + 1 |
|
222 | 222 | return fmtremaining(seconds) |
|
223 | 223 | return '' |
@@ -227,7 +227,7 b' class progbar(object):' | |||
|
227 | 227 | delta = pos - initialpos |
|
228 | 228 | elapsed = now - self.starttimes[topic] |
|
229 | 229 | if elapsed > float( |
|
230 |
self.ui.config('progress', 'estimate' |
|
|
230 | self.ui.config('progress', 'estimate')): | |
|
231 | 231 | return _('%d %s/sec') % (delta / elapsed, unit) |
|
232 | 232 | return '' |
|
233 | 233 |
General Comments 0
You need to be logged in to leave comments.
Login now