summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/ui/knotty.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 1723a72a8d..f89f7b3c30 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -260,13 +260,16 @@ class TerminalFilter(object):
260 content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) 260 content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total)
261 else: 261 else:
262 content = "Currently %2s running tasks (%s of %s)" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) 262 content = "Currently %2s running tasks (%s of %s)" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total)
263 maxtask = self.helper.tasknumber_total + 1 263 maxtask = self.helper.tasknumber_total
264 if not self.main_progress or self.main_progress.maxval != maxtask: 264 if not self.main_progress or self.main_progress.maxval != maxtask:
265 widgets = [' ', progressbar.Percentage(), ' ', progressbar.Bar()] 265 widgets = [' ', progressbar.Percentage(), ' ', progressbar.Bar()]
266 self.main_progress = BBProgress("Running tasks", maxtask, widgets=widgets) 266 self.main_progress = BBProgress("Running tasks", maxtask, widgets=widgets)
267 self.main_progress.start(False) 267 self.main_progress.start(False)
268 self.main_progress.setmessage(content) 268 self.main_progress.setmessage(content)
269 self.main_progress.update(self.helper.tasknumber_current) 269 progress = self.helper.tasknumber_current - 1
270 if progress < 0:
271 progress = 0
272 self.main_progress.update(progress)
270 print('') 273 print('')
271 lines = 1 + int(len(content) / (self.columns + 1)) 274 lines = 1 + int(len(content) / (self.columns + 1))
272 if not self.quiet: 275 if not self.quiet: