mercurial/progress.py
changeset 33250 bbc57a7e8823
parent 33249 391da1416038
child 33499 0407a51b9d8c
--- a/mercurial/progress.py	Fri Jun 30 03:44:02 2017 +0200
+++ b/mercurial/progress.py	Fri Jun 30 03:44:04 2017 +0200
@@ -217,7 +217,7 @@
             elapsed = now - self.starttimes[topic]
             # experimental config: progress.estimate
             if elapsed > float(
-                self.ui.config('progress', 'estimate', default=2)):
+                self.ui.config('progress', 'estimate')):
                 seconds = (elapsed * (target - delta)) // delta + 1
                 return fmtremaining(seconds)
         return ''
@@ -227,7 +227,7 @@
         delta = pos - initialpos
         elapsed = now - self.starttimes[topic]
         if elapsed > float(
-            self.ui.config('progress', 'estimate', default=2)):
+            self.ui.config('progress', 'estimate')):
             return _('%d %s/sec') % (delta / elapsed, unit)
         return ''