From: Chris Larson Date: Fri, 19 Nov 2010 19:00:37 +0000 (-0700) Subject: cooker: save progress chunk value (total/100) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09333737cbeeb9875d938521ddcd519fc808bcc3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cooker: save progress chunk value (total/100) Signed-off-by: Chris Larson --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index bfbcbb5f03b..3ae45f14942 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -962,6 +962,7 @@ class CookerParser(object): self.current = 0 self.result_queue = None self.fromcache = None + self.progress_chunk = self.total / 100 self.launch_processes() @@ -1056,7 +1057,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