summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-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 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):
243 pbox.pack_start(hbox, expand=False, fill=False, padding=6) 243 pbox.pack_start(hbox, expand=False, fill=False, padding=6)
244 label = gtk.Label("BitBake threads:") 244 label = gtk.Label("BitBake threads:")
245 label.show() 245 label.show()
246 spin_max = 9 #self.cpu_cnt * 3 246 # NOTE: may be a good idea in future to intelligently cap the maximum
247 # values but we need more data to make an educated decision, for now
248 # set a high maximum as a value for upper bounds is required by the
249 # gtk.Adjustment
250 spin_max = 30 # seems like a high enough arbitrary number
251 #spin_max = self.cpu_cnt * 3
247 hbox.pack_start(label, expand=False, fill=False, padding=6) 252 hbox.pack_start(label, expand=False, fill=False, padding=6)
248 bbadj = gtk.Adjustment(value=self.bbthread, lower=1, upper=spin_max, step_incr=1) 253 bbadj = gtk.Adjustment(value=self.bbthread, lower=1, upper=spin_max, step_incr=1)
249 bbspinner = gtk.SpinButton(adjustment=bbadj, climb_rate=1, digits=0) 254 bbspinner = gtk.SpinButton(adjustment=bbadj, climb_rate=1, digits=0)