refactor let bash expression

Former-commit-id: 8828ffa9a3314ce4c0593796fdbd9911970a7676
Former-commit-id: ebb016470f1fcf20333bef490e4167ae6132dfe9
This commit is contained in:
2023-05-15 15:03:36 +02:00
parent ed5b28b14f
commit 5fbe2a9efa

View File

@ -56,9 +56,9 @@ function lookForIR {
loginfo " --> IR size : IRa = ${IR[5]} / IRb = ${IR[7]}" loginfo " --> IR size : IRa = ${IR[5]} / IRb = ${IR[7]}"
loginfo " --> IR Score: ${IR[8]}" loginfo " --> IR Score: ${IR[8]}"
let "deltaIR=${IR[5]} - ${IR[7]}" deltaIR=$((IR[5] - IR[7]))
if (( $deltaIR < -10 )) || (( $deltaIR > 10 )); then if (( deltaIR < -10 )) || (( deltaIR > 10 )); then
logwarning "Differences between IR lengths ($deltaIR) is greater than 10" logwarning "Differences between IR lengths ($deltaIR) is greater than 10"
fi fi