diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-19 12:00:37 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:43 +0000 |
commit | 6cd15a1ea08792618a0bcb04aa33bbd6d53d48f8 (patch) | |
tree | bc00313fede4392cd6b4f6c782e9912817123940 | |
parent | 739bb5a2d1c821b8e44c0551bdd0fd323000b6af (diff) | |
download | ast2050-yocto-poky-6cd15a1ea08792618a0bcb04aa33bbd6d53d48f8.zip ast2050-yocto-poky-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>
-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 b573c32..8a3caeb 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 |