This commit is contained in:
milisbir 2017-07-31 16:54:50 +03:00
parent 509c09a899
commit 27a5c40ca5
1 changed files with 1 additions and 2 deletions

View File

@ -487,9 +487,8 @@ dongu_gosterge(){
count=0 count=0
total=$1 total=$1
pstr="[=======================================================================]" pstr="[=======================================================================]"
while [ $count -lt $total ]; do while [ $count -lt $total ]; do
sleep 0.5 # this is work sleep 0.5 # yapılacak iş veya uyutulur.
count=$(( $count + 1 )) count=$(( $count + 1 ))
pd=$(( $count * 73 / $total )) pd=$(( $count * 73 / $total ))
printf "\r%3d.%1d%% %.${pd}s" $(( $count * 100 / $total )) $(( ($count * 1000 / $total) % 10 )) $pstr printf "\r%3d.%1d%% %.${pd}s" $(( $count * 100 / $total )) $(( ($count * 1000 / $total) % 10 )) $pstr