Skip to content

Commit

Permalink
Remove dependence on perl (#41)
Browse files Browse the repository at this point in the history
* Remove dependence on perl

* Fix shellcheck SC2004

* Fix shellcheck SC2004
  • Loading branch information
KarolKozlowski authored Aug 29, 2024
1 parent 6087250 commit 9cea80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfs-inplace-rebalancing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cea80a

Please sign in to comment.