From b1bbda241f58a48531bd6f8aaaedb1e5dab0c0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Koz=C5=82owski?= Date: Mon, 8 Jul 2024 20:21:48 +0200 Subject: [PATCH] Remove dependence on perl --- zfs-inplace-rebalancing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zfs-inplace-rebalancing.sh b/zfs-inplace-rebalancing.sh index 82344ec..f6c25a4 100755 --- a/zfs-inplace-rebalancing.sh +++ b/zfs-inplace-rebalancing.sh @@ -69,7 +69,7 @@ function rebalance () { fi current_index="$((current_index + 1))" - progress_percent=$(perl -e "printf('%0.2f', ${current_index}*100/${file_count})") + progress_percent=$(printf '%0.2f' "$((${current_index}*10000/${file_count}))e-2") color_echo "${Cyan}" "Progress -- Files: ${current_index}/${file_count} (${progress_percent}%)" if [[ ! -f "${file_path}" ]]; then