mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6962d7c9a6
commit
bbc9130bd6
@ -4,10 +4,11 @@
|
|||||||
KEEP_FREE=2
|
KEEP_FREE=2
|
||||||
|
|
||||||
THREADS=`cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l`
|
THREADS=`cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l`
|
||||||
if [ $KEEP_FREE ] ; then
|
if [ $KEEP_FREE ] && (( THREADS > KEEP_FREE )) ; then
|
||||||
THREADS=$((THREADS - KEEP_FREE))
|
THREADS=$((THREADS - KEEP_FREE))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# TODO make this runnable from anywhere...
|
# TODO make this runnable from anywhere...
|
||||||
# - prepend paths with './' only if local/relative
|
# - prepend paths with './' only if local/relative
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,11 @@
|
|||||||
KEEP_FREE=2
|
KEEP_FREE=2
|
||||||
|
|
||||||
THREADS=`cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l`
|
THREADS=`cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l`
|
||||||
if [ $KEEP_FREE ] ; then
|
if [ $KEEP_FREE ] && (( THREADS > KEEP_FREE )) ; then
|
||||||
THREADS=$((THREADS - KEEP_FREE))
|
THREADS=$((THREADS - KEEP_FREE))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# TODO make this runnable from anywhere...
|
# TODO make this runnable from anywhere...
|
||||||
# - prepend paths with './' only if local/relative
|
# - prepend paths with './' only if local/relative
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user