From f8a734295c2a23119575dc17bdce157d01fbbacb Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 4 Sep 2019 10:23:26 +1200 Subject: [PATCH] reduce sleep time to 1s --- .mutt/bgrun | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.mutt/bgrun b/.mutt/bgrun index 836e836..890b50e 100755 --- a/.mutt/bgrun +++ b/.mutt/bgrun @@ -138,7 +138,7 @@ case "$SELF" in ( ts=$(($(date +%s) + $DELAY)) launch_viewer "$FILE" "$MIMETYPE" - while [ $(date +%s) -lt $ts ]; do sleep $DELAY; done + while [ $(date +%s) -lt $ts ]; do sleep 1; done cleanup ) & trap - 1 2 3 4 5 6 7 8 10 11 12 13 14 15 @@ -171,7 +171,7 @@ case "$SELF" in (launch_viewer "$FILE" "$MIMETYPE") & ( while [ $(($(stat -c%X "$FILE") + $DELAY)) -gt $(date +%s) ]; do - sleep $DELAY + sleep 1 done cleanup ) & -- 2.39.5