Update speedtest.sh

This commit is contained in:
tianyu 2015-07-20 12:51:02 +08:00
parent b533f48578
commit 5fd8c922c0
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
EMAIL="YOUR_EMAIL@example.com"
TIMEOUT=20
NAME="speedtest"
EVENT="finished"
OUTPUT=/tmp/wget.speedtest
@ -19,7 +20,7 @@ if [ -f $OUTPUT ]; then
fi
for file in ${TEST_FILES[@]}; do
timeout 5 wget -4 -O /dev/null $file -a $OUTPUT
timeout $TIMEOUT wget -4 -O /dev/null $file -a $OUTPUT
echo -e "\n\n#######################\n" >>$OUTPUT
done