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>
This commit is contained in:
Chris Larson
2010-11-19 12:00:37 -07:00
committed by Richard Purdie
parent 739bb5a2d1
commit 6cd15a1ea0

View File

@@ -997,6 +997,7 @@ class CookerParser(object):
self.current = 0
self.result_queue = None
self.fromcache = None
self.progress_chunk = self.total / 100
self.launch_processes()
@@ -1092,7 +1093,7 @@ class CookerParser(object):
self.skipped += 1
finally:
# only fire events on percentage boundaries
if self.current % (self.total/100) == 0:
if self.current % self.progress_chunk == 0:
bb.event.fire(bb.event.ParseProgress(self.current), self.cfgdata)
self.current += 1