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