Have the task count start at 1 (regression)

This commit is contained in:
Thomas Nagy 2017-10-20 20:25:03 +02:00
parent 002c1fa094
commit 40fe56abcd
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 4 deletions

View File

@ -362,10 +362,7 @@ class Task(evil):
def cur():
# the current task position, computed as late as possible
tmp = -1
if hasattr(master, 'ready'):
tmp -= master.ready.qsize()
return master.processed + tmp
return master.processed - master.ready.qsize()
if self.generator.bld.progress_bar == 1:
return self.generator.bld.progress_line(cur(), master.total, col1, col2)