Merge pull request #1004 from srd424/upst-chunk-analysis
Chunk analysis calls to facilitate recovery from stalls & low disk space
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env -S --default-signal=PIPE bash
|
||||
# Runs BirdNET-Lite
|
||||
#set -x
|
||||
source /etc/birdnet/birdnet.conf
|
||||
@@ -52,6 +52,7 @@ fi
|
||||
get_files() {
|
||||
files=($( find ${1} -maxdepth 1 -name '*wav' ! -size 0\
|
||||
| sort \
|
||||
| head -n 20 \
|
||||
| awk -F "/" '{print $NF}' ))
|
||||
[ -n "${files[1]}" ] && echo "Files loaded"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user