Default -j is now *1.5 (instead of +1).
authorjkratoch <>
Thu, 4 Jun 2009 18:54:32 +0000 (18:54 +0000)
committerjkratoch <>
Thu, 4 Jun 2009 18:54:32 +0000 (18:54 +0000)
.bashrc
bin/errs2

diff --git a/.bashrc b/.bashrc
index afd754d..1221921 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -193,7 +193,7 @@ export TZ=":/usr/share/zoneinfo/Europe/Prague"
 MAKEFLAGS=
 cpus="`getconf _NPROCESSORS_ONLN`"
 if [ -n "$cpus" ];then
-       MAKEFLAGS="$MAKEFLAGS -j$[$cpus+1]"
+       MAKEFLAGS="$MAKEFLAGS -j$[$cpus*3/2]"
 fi
 unset cpus
 # Do not: grep -w "$TERM" /etc/termcap >/dev/null || export TERM=vt220
index 7563cf7..2ba4f45 100755 (executable)
--- a/bin/errs2
+++ b/bin/errs2
@@ -9,7 +9,7 @@ fi
 j=""
 cpus="`getconf _NPROCESSORS_ONLN`"
 if [ -n "$cpus" ];then
-       j="-j$[$cpus+1]"
+       j="-j$[$cpus*3/2]"
 fi
 (
        set -ex