mirror of
https://github.com/markusressel/zfs-inplace-rebalancing
synced 2026-02-04 21:14:09 +00:00
Remove dependence on perl
This commit is contained in:
parent
6087250290
commit
b1bbda241f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user