1
1
Fork 0

changed bandwitdh.sh

This commit is contained in:
david 2015-10-12 22:34:39 +02:00
parent 24f87bea7e
commit c81feb28c6
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ if [ $? -ne 0 ]; then
fi
result=$(cat $localpath/bandwidth_scplogup | grep "Bytes per second" | awk '{print $5}' | sed 's/\,//')
result=$(echo $result | sed 's/\..*//')
echo "upload (kbit/s): $(($result * 8 / 1024))"
echo "UPLOAD: $(($result * 8 / 1024)) kbit/s"
rm $localpath/bandwidth_scplogup
# download file
@ -99,7 +99,7 @@ if [ $? -ne 0 ]; then
fi
result=$(cat $localpath/bandwidth_scplogdown | grep "Bytes per second" | awk '{print $7}' | sed 's/\,//')
result=$(echo $result | sed 's/\..*//')
echo "download (kbit/s): $(($result * 8 / 1024))"
echo "DOWNLOAD: $(($result * 8 / 1024)) kbit/s"
rm $localpath/bandwidth_scplogdown
# remove remote file