summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-19 12:00:37 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:43 +0000
commit6cd15a1ea08792618a0bcb04aa33bbd6d53d48f8 (patch)
treebc00313fede4392cd6b4f6c782e9912817123940 /bitbake/lib/bb
parent739bb5a2d1c821b8e44c0551bdd0fd323000b6af (diff)
downloadpoky-6cd15a1ea08792618a0bcb04aa33bbd6d53d48f8.tar.gz
cooker: save progress chunk value (total/100)
(Bitbake rev: 09333737cbeeb9875d938521ddcd519fc808bcc3) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index b573c32ed9..8a3caeb4cc 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -997,6 +997,7 @@ class CookerParser(object):
997 self.current = 0 997 self.current = 0
998 self.result_queue = None 998 self.result_queue = None
999 self.fromcache = None 999 self.fromcache = None
1000 self.progress_chunk = self.total / 100
1000 1001
1001 self.launch_processes() 1002 self.launch_processes()
1002 1003
@@ -1092,7 +1093,7 @@ class CookerParser(object):
1092 self.skipped += 1 1093 self.skipped += 1
1093 finally: 1094 finally:
1094 # only fire events on percentage boundaries 1095 # only fire events on percentage boundaries
1095 if self.current % (self.total/100) == 0: 1096 if self.current % self.progress_chunk == 0:
1096 bb.event.fire(bb.event.ParseProgress(self.current), self.cfgdata) 1097 bb.event.fire(bb.event.ParseProgress(self.current), self.cfgdata)
1097 1098
1098 self.current += 1 1099 self.current += 1