Update benchmark.sh
This commit is contained in:
parent
5565baea22
commit
8f467bc4c7
@ -60,15 +60,19 @@ do
|
|||||||
then
|
then
|
||||||
if [[ $wave_connection -le $wave_max_conn ]]
|
if [[ $wave_connection -le $wave_max_conn ]]
|
||||||
then
|
then
|
||||||
|
echo -e "Stepping up"
|
||||||
wave_connection=$((wave_connection * 2))
|
wave_connection=$((wave_connection * 2))
|
||||||
else
|
else
|
||||||
|
echo -e "Not stepping"
|
||||||
wave_dir_up=false
|
wave_dir_up=false
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ $wave_connection -ge $wave_min_conn ]]
|
if [[ $wave_connection -ge $wave_min_conn ]]
|
||||||
then
|
then
|
||||||
|
echo -e "Stepping down"
|
||||||
wave_connection=$((wave_connection / 2))
|
wave_connection=$((wave_connection / 2))
|
||||||
else
|
else
|
||||||
|
echo -e "Not stepping"
|
||||||
wave_dir_up=true
|
wave_dir_up=true
|
||||||
wave_loop=$((wave_loop + 1))
|
wave_loop=$((wave_loop + 1))
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user