diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 3 |
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): 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 |