Skip to content

Commit

Permalink
Remove dependence on perl
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolKozlowski committed Jul 8, 2024
1 parent 6087250 commit b1bbda2
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 b1bbda2

Please sign in to comment.