From bb5c7d5b94705ea47559bd00540bcbd3bd89a9c0 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 22 Jul 2011 11:40:15 -0700 Subject: ui/crumbs/hobprefs: set higher arbitrary limit on threads & parallelism We don't have a good handle on a sane cap value so just set it to an arbitrary, but reasonably high, number. Once we have some more numbers on values for number of threads and make parallelism we can integrate the algorithm into the GUI. Addresses [YOCTO #1266] (Bitbake rev: 31274e78eab502f5eb9f6079897644b535d31dd1) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobprefs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/ui/crumbs/hobprefs.py b/bitbake/lib/bb/ui/crumbs/hobprefs.py index 779c14a63f..e01a2662fc 100644 --- a/bitbake/lib/bb/ui/crumbs/hobprefs.py +++ b/bitbake/lib/bb/ui/crumbs/hobprefs.py @@ -243,7 +243,12 @@ class HobPrefs(gtk.Dialog): pbox.pack_start(hbox, expand=False, fill=False, padding=6) label = gtk.Label("BitBake threads:") label.show() - spin_max = 9 #self.cpu_cnt * 3 + # NOTE: may be a good idea in future to intelligently cap the maximum + # values but we need more data to make an educated decision, for now + # set a high maximum as a value for upper bounds is required by the + # gtk.Adjustment + spin_max = 30 # seems like a high enough arbitrary number + #spin_max = self.cpu_cnt * 3 hbox.pack_start(label, expand=False, fill=False, padding=6) bbadj = gtk.Adjustment(value=self.bbthread, lower=1, upper=spin_max, step_incr=1) bbspinner = gtk.SpinButton(adjustment=bbadj, climb_rate=1, digits=0) -- cgit v1.2.3-54-g00ecf