Testing different thread limits in parallel_xz.sh

Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
This commit is contained in:
Justin M. Forbes 2020-11-16 10:52:07 -06:00
parent 6c08b065ee
commit 1c3978ac34

View File

@ -16,6 +16,11 @@ while test "$#" != 0; do
shift
done
#This seems to cause problems with large numbers
if (( $procgroup > 8 )); then
procgroup=8
fi
# If told to use only one cpu:
test "$procgroup" || exec xargs -r xz
test "$procgroup" = 1 && exec xargs -r xz