fixed parameter count bug in watchgrowth

This commit is contained in:
tke
2019-12-04 11:10:44 +01:00
parent 414de286cd
commit a6dfa25441

View File

@@ -10,7 +10,7 @@ old_size=${new_size}
#speed=$(( ${size_diff} / (1024*1024) )) #speed=$(( ${size_diff} / (1024*1024) ))
progress="" progress=""
if [[ $# -eq 2 ]] ; then if [[ $# -eq 3 ]] ; then
total=${2} total=${2}
progress_p=$(echo "2 k ${new_size} ${total} 100 / / p" | dc) progress_p=$(echo "2 k ${new_size} ${total} 100 / / p" | dc)
progress="${progress_p} %" progress="${progress_p} %"