summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/ui/uihelper.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/uihelper.py b/bitbake/lib/bb/ui/uihelper.py
index 1915e47703..f64fa18ec2 100644
--- a/bitbake/lib/bb/ui/uihelper.py
+++ b/bitbake/lib/bb/ui/uihelper.py
@@ -54,9 +54,10 @@ class BBUIHelper:
54 self.tasknumber_total = event.stats.total 54 self.tasknumber_total = event.stats.total
55 self.needUpdate = True 55 self.needUpdate = True
56 if isinstance(event, bb.build.TaskProgress): 56 if isinstance(event, bb.build.TaskProgress):
57 self.running_tasks[event.pid]['progress'] = event.progress 57 if event.pid > 0:
58 self.running_tasks[event.pid]['rate'] = event.rate 58 self.running_tasks[event.pid]['progress'] = event.progress
59 self.needUpdate = True 59 self.running_tasks[event.pid]['rate'] = event.rate
60 self.needUpdate = True
60 61
61 def getTasks(self): 62 def getTasks(self):
62 self.needUpdate = False 63 self.needUpdate = False