From 6cd15a1ea08792618a0bcb04aa33bbd6d53d48f8 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 19 Nov 2010 12:00:37 -0700 Subject: cooker: save progress chunk value (total/100) (Bitbake rev: 09333737cbeeb9875d938521ddcd519fc808bcc3) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index b573c32ed..8a3caeb4c 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 -- cgit v1.2.3