projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dfcebb
)
slight simplification
author
Guillaume Cottenceau
<gcottenc@gmail.com>
Thu, 30 Aug 2012 14:18:55 +0000
(16:18 +0200)
committer
Guillaume Cottenceau
<gcottenc@gmail.com>
Thu, 30 Aug 2012 14:18:55 +0000
(16:18 +0200)
bin/booh
patch
|
blob
|
history
diff --git
a/bin/booh
b/bin/booh
index
7077b2b
..
0ff3181
100644
(file)
--- a/
bin/booh
+++ b/
bin/booh
@@
-198,10
+198,7
@@
It is generally available with the 'ImageMagick' software package.")), { :pos_ce
check_config_preferences_dep
- cpus = 0
- for line in IO.readlines('/proc/cpuinfo') do
- line =~ /^processor/ and cpus += 1
- end
+ cpus = count_cpus
if $config['cpus'] && count_cpus > $config['cpus'].to_i
show_popup($main_window, utf8(_("It seems you now have more CPUs available than last time booh was run.