Skip to content

Commit

Permalink
Threshold now based on upper download limit for AutoBW
Browse files Browse the repository at this point in the history
  • Loading branch information
waluwaz committed Apr 20, 2021
1 parent 4ebcd85 commit b9efe83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spdmerlin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1578,18 +1578,18 @@ Run_Speedtest(){
sh "$extStats" ext "$download" "$upload"
fi
# fi
# When running in scheduled mode, even if it is instructed to run several times, it will stop
# as soon as one run reaches the download speed hard-coded two lines below.
# When instructed to run for several probes, it will stop
# as soon as one run reaches the download speed hard-coded two lines below, or in the upper limit for download for AutoBW.
# The rational is that if one server indicates bad performance, it might be due to a temporarily "bad" server.
# In such case, the testing proceeds with more servers.
# Note that the servers are defined in a specific order. First servers that are far from my ISP (more likely to produce bad results).
# Then servers which are close to my ISP.
if [ "$mode" = "schedule" ]; then
if [ "$(echo $download | awk 'BEGIN{FS="."}{print $1}')" -gt "310" ]
# if [ "$mode" = "schedule" ]; then
if [ "$(echo $download | awk 'BEGIN{FS="."}{print $1}')" -gt "$(($(AutoBWConf check ULIMIT DOWN)*1))" ]
then
break
fi
fi
# fi
done

if [ "$(ExcludeFromQoS check)" = "true" ]; then
Expand Down

0 comments on commit b9efe83

Please sign in to comment.