From ee1f4b4b578f42a173478df074e6cafc69072a7a Mon Sep 17 00:00:00 2001 From: Joseph Graham Date: Thu, 22 Jun 2017 08:15:23 +0100 Subject: Tidy comments. --- pacman2pacman-get | 4 ++-- 1 file 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." -- cgit v1.2.2