You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
in capture.sh on line 7: speedtest-cli --server 4135 --simple > /tmp/speedtest-results
the server is hard coded to 4135 which is in auckland.
this causes slow results for anyone who is not in auckland
(even here in sydney the results were slow)
i would suggest adding the ability to set an environment variable to set this.
for consistent results, i wouldnt remove the --server argument altogether - i want to use one server that is close to me.
if the variable is set, use the value given, otherwise automatically choose.
i submitted a pull request (#4 ), but then closed it because there were problems with it that i am too busy to fix,
here is the code from that:
if [ $server -ne 0 ]; then
echo "Server has been set to $server"
srv="--server $server"
else
echo "Automatically selecting server"
srv=""
fi
speedtest-cli $srv --simple > /tmp/speedtest-results
dont use this code directly, the if statement needs to be replaced with a check that returns true if $server is a number above or equal to 1. ($server is the environment variable)
The text was updated successfully, but these errors were encountered:
Hi
in
capture.sh
on line7
:speedtest-cli --server 4135 --simple > /tmp/speedtest-results
the server is hard coded to 4135 which is in auckland.
this causes slow results for anyone who is not in auckland
(even here in sydney the results were slow)
i would suggest adding the ability to set an environment variable to set this.
for consistent results, i wouldnt remove the
--server
argument altogether - i want to use one server that is close to me.if the variable is set, use the value given, otherwise automatically choose.
i submitted a pull request (#4 ), but then closed it because there were problems with it that i am too busy to fix,
here is the code from that:
dont use this code directly, the if statement needs to be replaced with a check that returns true if $server is a number above or equal to 1. ($server is the environment variable)
The text was updated successfully, but these errors were encountered: