there should have been "bc" but this is better
This commit is contained in:
parent
d55edaf2a7
commit
c83e7bd5de
|
@ -24,7 +24,7 @@ done |sort -n | while read l ; do
|
|||
break
|
||||
fi
|
||||
|
||||
if [ `echo "$density*($curtime-$lasttime)/($timenow-$lasttime)"` -lt 1] ; then
|
||||
if [ $(( $density*($curtime-$lasttime)/($timenow-$lasttime) )) -lt 1] ; then
|
||||
zfs destroy "$snapname"
|
||||
else
|
||||
lasttime="$curtime"
|
||||
|
|
Loading…
Reference in a new issue