From 805b11491366b0387da14ab087b99622b1f029b6 Mon Sep 17 00:00:00 2001 From: Mitch Weaver Date: Fri, 29 May 2020 18:47:00 -0500 Subject: [PATCH] fix bugs in update sleep --- subs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subs b/subs index 73b8dc9..db3a5f6 100755 --- a/subs +++ b/subs @@ -15,7 +15,7 @@ : "${SUBS:=${XDG_CACHE_HOME:-~/.cache}/subs}" : "${SUBS_LINKS:=$SUBS/links}" : "${SUBS_CACHE:=$SUBS/cache}" -# : "${SLEEP_VALUE:=0.1}" # may need this if you experience problems +: "${SUBS_SLEEP_VALUE:=0.1}" # raise this if you experience problems # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SEP=^^^^^ # shouldn't need to change this # -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ @@ -126,7 +126,7 @@ update_subs() { count=$(( count + 1 )) printf 'starting job [%s/%s] for %s\n' "$count" "$total" "$link" get_vids "$link" & - sleep "${SLEEP_VALUE:-0}" + sleep "${SUBS_SLEEP_VALUE:-0}" done <"$SUBS_LINKS" count=0