Update benchmark.sh

This commit is contained in:
Torma Kristóf 2019-04-26 16:52:16 +02:00 committed by GitHub
parent 5565baea22
commit 8f467bc4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,15 +60,19 @@ do
then
if [[ $wave_connection -le $wave_max_conn ]]
then
echo -e "Stepping up"
wave_connection=$((wave_connection * 2))
else
echo -e "Not stepping"
wave_dir_up=false
fi
else
if [[ $wave_connection -ge $wave_min_conn ]]
then
echo -e "Stepping down"
wave_connection=$((wave_connection / 2))
else
echo -e "Not stepping"
wave_dir_up=true
wave_loop=$((wave_loop + 1))
fi