Update speedtest.sh
This commit is contained in:
parent
b533f48578
commit
5fd8c922c0
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
EMAIL="YOUR_EMAIL@example.com"
|
EMAIL="YOUR_EMAIL@example.com"
|
||||||
|
TIMEOUT=20
|
||||||
NAME="speedtest"
|
NAME="speedtest"
|
||||||
EVENT="finished"
|
EVENT="finished"
|
||||||
OUTPUT=/tmp/wget.speedtest
|
OUTPUT=/tmp/wget.speedtest
|
||||||
|
@ -19,7 +20,7 @@ if [ -f $OUTPUT ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in ${TEST_FILES[@]}; do
|
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
|
echo -e "\n\n#######################\n" >>$OUTPUT
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue