From 16476041220523a1fb29c3a782199af789d0e808 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Fri, 17 Feb 2023 12:15:17 -0500 Subject: [PATCH] Update birdnet_analysis.sh --- scripts/birdnet_analysis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.sh index 4d55f99..474a757 100755 --- a/scripts/birdnet_analysis.sh +++ b/scripts/birdnet_analysis.sh @@ -103,7 +103,7 @@ run_analysis() { itr=0 until [ -z "$(lsof -t ${1}/${i})" ];do itr=$((itr+1)) - if [ $itr -eq 30 ]; then + if [ $itr -eq $(($RECORDING_LENGTH * 3)) ]; then echo "Maximum number of attempts exceeded. Exiting & restarting service." exit fi