Fixed bug in treshold-cross logic
[mirrors/Programs.git] / c / goertzel / sleepmon.sh
index a5d9d8168c790f33924d26ed3d88869b0e9d1299..4896e87327002696a3092d70f5ea4c3351ddf36e 100755 (executable)
@@ -22,7 +22,7 @@ while getopts "s" OPT; do
        test "$OPT" == 's' && screen=true;
 done
 echo "Writing to file: $out";
-arecord | ./goertzel -n -q -l -t $tresh -d 4 | while read line; do
+arecord | ./goertzel -n i -q -l c -t $tresh -d 4 | while read line; do
        date="$(date +%s)"
        time="$(echo "$line" | cut -f 1)"
        level="$(echo "$line" | cut -f 2)"
@@ -42,4 +42,5 @@ arecord | ./goertzel -n -q -l -t $tresh -d 4 | while read line; do
        lastdate="$date";
 done | tee "$out"
 kill $!
+echo
 echo "Your file: $out"
This page took 0.098724 seconds and 4 git commands to generate.