Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: src/scripts/build_kernel.sh

Issue 501153: Simplified counting CPUs. (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scripts/build_chrome.sh ('k') | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_kernel.sh
diff --git a/src/scripts/build_kernel.sh b/src/scripts/build_kernel.sh
index 6fd124b1497a52e8ba767128bb838dda4d1ee9a0..4efa4667b1534d1f050e1333fd7a701205c6d19d 100755
--- a/src/scripts/build_kernel.sh
+++ b/src/scripts/build_kernel.sh
@@ -126,7 +126,7 @@ then
CONCURRENCY_LEVEL=2
else
# speed up compilation by running #cpus * 2 simultaneous jobs
- CONCURRENCY_LEVEL=$(($(cat /proc/cpuinfo | grep "processor" | wc -l) * 2))
+ CONCURRENCY_LEVEL=$(($(grep -c "^processor" /proc/cpuinfo) * 2))
fi
# Build the kernel and make package. "setarch" is used so that scripts which
« no previous file with comments | « src/scripts/build_chrome.sh ('k') | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698