fix: Progress calculation (#799)
Build / Check (push) Has been cancelled
Build / Build (push) Has been cancelled

This commit is contained in:
Kroese authored and GitHub committed 2024-08-18 17:55:07 +02:00
1 parent 64975557c2
commit 77ac73666e
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ do
if [ -z "$total" ] || [[ "$total" == "0" ]]; then
size=$(numfmt --to=iec --suffix=B "$bytes" | sed -r 's/([A-Z])/ \1/')
else
size=$(printf '%.1f\n' "$((bytes*100*100/total))e-2")
size="$(echo "$bytes" "$total" | awk '{printf "%.1f", $1 * 100 / $2}')"
size="$size%"
fi
echo "${body//(\[P\])/($size)}"> "$info"