summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-07-22 11:40:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 12:54:15 +0100
commitbb5c7d5b94705ea47559bd00540bcbd3bd89a9c0 (patch)
treeab5f5a108e1f707e41d0036e4329e76a34ebb0dd
parent9cf5190679f372da212cbbbf85e27b9ea6a395f4 (diff)
downloadast2050-yocto-poky-bb5c7d5b94705ea47559bd00540bcbd3bd89a9c0.zip
ast2050-yocto-poky-bb5c7d5b94705ea47559bd00540bcbd3bd89a9c0.tar.gz
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 <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobprefs.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobprefs.py b/bitbake/lib/bb/ui/crumbs/hobprefs.py
index 779c14a..e01a266 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)
OpenPOWER on IntegriCloud