Browse Source

torrent timeout deactivated

#146
rootzoll 6 years ago
parent
commit
8a6870b0d0
  1. 27
      home.admin/50torrentHDD.sh

27
home.admin/50torrentHDD.sh

@ -70,30 +70,31 @@ while :
freshSize=0 freshSize=0
fi fi
progress=$(echo "scale=2; $freshSize*100/$targetSize" | bc) progress=$(echo "scale=2; $freshSize*100/$targetSize" | bc)
echo $progress > '.${name}.progress' echo $progress > ".${name}.progress"
# detect if since last loop any progress occured # detect if since last loop any progress occured
if [ ${actualSize} -eq ${freshSize} ]; then #if [ ${actualSize} -eq ${freshSize} ]; then
timeoutInfo="${timeout}/${maxTimeoutLoops}" # timeoutInfo="${timeout}/${maxTimeoutLoops}"
timeout=$(( $timeout + 1 )) # timeout=$(( $timeout + 1 ))
else #else
timeout=1 # timeout=1
timeoutInfo="no timeout detected" # timeoutInfo="no timeout detected"
fi #fi
actualSize=$freshSize actualSize=$freshSize
# detect if mx timeout loop limit is reached # detect if mx timeout loop limit is reached
if [ ${timeout} -gt ${maxTimeoutLoops} ]; then #if [ ${timeout} -gt ${maxTimeoutLoops} ]; then
echo "FAIL - download hit timeout" # echo "FAIL - download hit timeout"
break # break
fi #fi
# display info screen # display info screen
clear clear
echo "****************************************************" echo "****************************************************"
echo "Monitoring Screen Session: ${name}" echo "Monitoring Screen Session: ${name}"
echo "Progress: ${progress}% (${actualSize} of ${targetSize})" echo "Progress: ${progress}% (${actualSize} of ${targetSize})"
echo "Timeout: ${timeoutInfo}" #echo "Timeout: ${timeoutInfo}"
echo "If needed press key x to stop ${name}" echo "If needed press key x to stop ${name}"
echo "NOTICE: This can take multiple hours or days !!" echo "NOTICE: This can take multiple hours or days !!"
echo "Its OK to close terminal now and SSH back in later." echo "Its OK to close terminal now and SSH back in later."

Loading…
Cancel
Save