Compare commits
No commits in common. "9d24be962b31bf789845bce750fe7e1165e2c71f" and "33120e8be3e54a50af7e81124a5982ebaec8fac6" have entirely different histories.
9d24be962b
...
33120e8be3
24
atom
24
atom
@ -712,19 +712,19 @@ do
|
||||
then
|
||||
concurrency="$fixed_workers"
|
||||
else
|
||||
if [ -z "$quit" ] \
|
||||
&& (( ! pause )) \
|
||||
&& (( $(date +%s)-concurrencychange >= loadinterval ))
|
||||
if [ -z "$quit" ] \
|
||||
&& (( ! pause )) \
|
||||
&& (( $(date +%s)-concurrencychange >= loadinterval ))
|
||||
then
|
||||
if (( concurrency > 1 )) \
|
||||
&& (( load > maxload ))
|
||||
then
|
||||
if (( concurrency > 1 )) \
|
||||
&& (( load > maxload ))
|
||||
then
|
||||
concurrencychange=$(date +%s)
|
||||
(( --concurrency ))
|
||||
elif (( load < maxload )) && (( active > concurrency - 1 ))
|
||||
then
|
||||
concurrencychange=$(date +%s)
|
||||
(( ++concurrency ))
|
||||
concurrencychange=$(date +%s)
|
||||
(( --concurrency ))
|
||||
elif (( load < maxload )) && (( active > concurrency - 1 ))
|
||||
then
|
||||
concurrencychange=$(date +%s)
|
||||
(( ++concurrency ))
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -11,15 +11,5 @@ progressSpin() {
|
||||
30) echo -n $'\b\\' ;;
|
||||
*) ;;
|
||||
esac
|
||||
if ! (( count % 100 ))
|
||||
then
|
||||
echo -n " $count"
|
||||
until (( backspace > ${#count} ))
|
||||
do
|
||||
(( backspace++ ))
|
||||
echo -n $'\b'
|
||||
done
|
||||
unset backspace
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user