Skip to content

Commit

Permalink
progress bar update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang548 committed May 4, 2022
1 parent 7544ba6 commit 681fbbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/file_manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,16 @@ progress_bar(){
time=$1
ncheck=$2
bar_len=$3
prefix=${4:-params}
prefix=$4
N=$5
slurm=${6:-slurm}

time_lap=$(($1/$2))

N_record=0

printf "Waiting for job to complete ..."

while true
do

Expand All @@ -127,6 +129,8 @@ do
printf "#"
done
printf " [$(($N_finished * 100 / $N)) %%]\r"
elif [[ $N_record -eq 0 ]]; then
printf "."
fi

sleep 1
Expand Down

0 comments on commit 681fbbd

Please sign in to comment.