From 7da82e95c8b2688acc5346f35ff8bfeb37014159 Mon Sep 17 00:00:00 2001 From: ash-iir <254348575+ash-iir@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:38:33 +0000 Subject: [PATCH] helper: overview backups size with toybox du toybox du has no -B, so du -s -B1 printed nothing and backups_size was always 0. Use du -sk and multiply, as the other size checks already do. Signed-off-by: ash-iir <254348575+ash-iir@users.noreply.github.com> --- module/scripts/helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/scripts/helper.sh b/module/scripts/helper.sh index ec3518e..d95eff6 100644 --- a/module/scripts/helper.sh +++ b/module/scripts/helper.sh @@ -982,7 +982,7 @@ EOF done paths=0; for d in "$bk"/.paths/*/; do [ -d "$d" ] && paths=$(( paths + 1 )); done jobs=0; for f in "$STATE/jobs"/*.json; do [ -f "$f" ] && jobs=$(( jobs + 1 )); done - size=0; if [ -d "$bk" ]; then size="$(du -s -B1 "$bk" 2>/dev/null | cut -f1)"; case "$size" in ''|*[!0-9]*) size=0 ;; esac; fi + size=0; if [ -d "$bk" ]; then size="$(du -sk "$bk" 2>/dev/null | cut -f1)"; case "$size" in ''|*[!0-9]*) size=0 ;; esac; size=$((size * 1024)); fi # toybox du: -k, no -B _dfp="$bk"; [ -d "$_dfp" ] || _dfp="/data/media/$u"; [ -d "$_dfp" ] || _dfp=/data free=0; total=0 set -- $(df -kP "$_dfp" 2>/dev/null | tail -1)