summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Graham <joseph@xylon.me.uk>2017-06-22 08:15:23 +0100
committerJoseph Graham <joseph@xylon.me.uk>2017-06-22 08:15:23 +0100
commitee1f4b4b578f42a173478df074e6cafc69072a7a (patch)
treed15d7d564e15576ed8794bc157c554074ba8d738
parent36b05c43c31e04b3e6ee078643366133ce81190a (diff)
Tidy comments.
-rw-r--r--pacman2pacman-get4
1 files changed, 2 insertions, 2 deletions
diff --git a/pacman2pacman-get b/pacman2pacman-get
index b94b14b..e8c454e 100644
--- a/pacman2pacman-get
+++ b/pacman2pacman-get
@@ -33,7 +33,7 @@ pkg_cache_location='/var/cache/pacman/pkg'
prog_check_freq=1.4 # seconds to update downlaod progress
-webseed_check_freq='60' # if download is still at 0% after this much time, check webseed is alive
+stall_time='60' # if download is still at 0% after this much time, check webseed is alive
# Pacman2pacman should be called like this from /etc/pacman.conf:
# XferCommand = /usr/bin/pacman2pacman-get %u %o
@@ -221,7 +221,7 @@ then
progress="${progress##* }" # Remove stuff we don't want
# If our percent hasn't changed after the defined time we fall back to HTTP.
- if (( timenow > ( starttime + webseed_check_freq ) )) && [[ "${progress}" == "${last_check_percentage}" ]]
+ if (( timenow > ( starttime + stall_time ) )) && [[ "${progress}" == "${last_check_percentage}" ]]
then
echo # the previous print was not followed by a newline
echo $"Download stalled. Removing torrent from transmission and falling back to HTTP."