Read a filesystem once where two probes were answering the same question

This commit is contained in:
Gmer4Lfe
2026-08-24 18:46:26 -04:00
parent 9da2760a42
commit b58282b3d6
4 changed files with 23 additions and 14 deletions
+1 -2
View File
@@ -354,8 +354,7 @@ for arr in sonarr radarr lidarr; do
big_unknown=$((big_unknown + 1))
done < <(find "$entry" -type f -size +"${min_mb}"M 2>/dev/null)
size_mb=$(du -sm "$entry" 2>/dev/null | cut -f1)
size_mb=${size_mb:-0}
size_mb=$(dir_size_mb "$entry") || size_mb=0
if [[ "$has_media" == false ]] && (( big_unknown > 0 )); then
warn " no recognised media, but $big_unknown large file(s) of unknown type — holding: $base"