Compare commits

..

No commits in common. "9d24be962b31bf789845bce750fe7e1165e2c71f" and "33120e8be3e54a50af7e81124a5982ebaec8fac6" have entirely different histories.

2 changed files with 12 additions and 22 deletions

24
atom
View File

@ -712,19 +712,19 @@ do
then then
concurrency="$fixed_workers" concurrency="$fixed_workers"
else else
if [ -z "$quit" ] \ if [ -z "$quit" ] \
&& (( ! pause )) \ && (( ! pause )) \
&& (( $(date +%s)-concurrencychange >= loadinterval )) && (( $(date +%s)-concurrencychange >= loadinterval ))
then
if (( concurrency > 1 )) \
&& (( load > maxload ))
then then
if (( concurrency > 1 )) \ concurrencychange=$(date +%s)
&& (( load > maxload )) (( --concurrency ))
then elif (( load < maxload )) && (( active > concurrency - 1 ))
concurrencychange=$(date +%s) then
(( --concurrency )) concurrencychange=$(date +%s)
elif (( load < maxload )) && (( active > concurrency - 1 )) (( ++concurrency ))
then
concurrencychange=$(date +%s)
(( ++concurrency ))
fi fi
fi fi
fi fi

View File

@ -11,15 +11,5 @@ progressSpin() {
30) echo -n $'\b\\' ;; 30) echo -n $'\b\\' ;;
*) ;; *) ;;
esac esac
if ! (( count % 100 ))
then
echo -n " $count"
until (( backspace > ${#count} ))
do
(( backspace++ ))
echo -n $'\b'
done
unset backspace
fi
fi fi
} }