Compare commits
2 Commits
33120e8be3
...
9d24be962b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d24be962b | ||
|
|
0ce0d18ab8 |
24
atom
24
atom
@ -712,19 +712,19 @@ do
|
||||
then
|
||||
concurrency="$fixed_workers"
|
||||
else
|
||||
if [ -z "$quit" ] \
|
||||
&& (( ! pause )) \
|
||||
&& (( $(date +%s)-concurrencychange >= loadinterval ))
|
||||
then
|
||||
if (( concurrency > 1 )) \
|
||||
&& (( load > maxload ))
|
||||
if [ -z "$quit" ] \
|
||||
&& (( ! pause )) \
|
||||
&& (( $(date +%s)-concurrencychange >= loadinterval ))
|
||||
then
|
||||
concurrencychange=$(date +%s)
|
||||
(( --concurrency ))
|
||||
elif (( load < maxload )) && (( active > concurrency - 1 ))
|
||||
then
|
||||
concurrencychange=$(date +%s)
|
||||
(( ++concurrency ))
|
||||
if (( concurrency > 1 )) \
|
||||
&& (( load > maxload ))
|
||||
then
|
||||
concurrencychange=$(date +%s)
|
||||
(( --concurrency ))
|
||||
elif (( load < maxload )) && (( active > concurrency - 1 ))
|
||||
then
|
||||
concurrencychange=$(date +%s)
|
||||
(( ++concurrency ))
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -11,5 +11,15 @@ 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