mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 20:59:42 +01:00
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:
committed by
Richard Purdie
parent
739bb5a2d1
commit
6cd15a1ea0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user