Commit e98e04cb authored by szager@chromium.org's avatar szager@chromium.org

Fix off-by-one error in gclient progress indicator.

BUG=368673
R=iannucci@chromium.org,cmp@chromium.org

Review URL: https://codereview.chromium.org/412403002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@285434 0039d316-1c4b-4281-b951-d872f2087c98
parent bda81551
......@@ -797,9 +797,11 @@ class ExecutionQueue(object):
try:
self.queued.append(d)
total = len(self.queued) + len(self.ran) + len(self.running)
if self.jobs == 1:
total += 1
logging.debug('enqueued(%s)' % d.name)
if self.progress:
self.progress._total = total + 1
self.progress._total = total
self.progress.update(0)
self.ready_cond.notifyAll()
finally:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment