changed bandwitdh.sh
This commit is contained in:
parent
24f87bea7e
commit
c81feb28c6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue