fixed parameter count bug in watchgrowth
This commit is contained in:
1 parent
1bb28f9c85
commit
de53aaaadc
1 file changed
+1
-1
+1
-1
@@ -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} %"
|
||||||
|
|||||||
Reference in new issue
Block a user