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
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ `echo "$density*($curtime-$lasttime)/($timenow-$lasttime)"` -lt 1] ; then
|
if [ $(( $density*($curtime-$lasttime)/($timenow-$lasttime) )) -lt 1] ; then
|
||||||
zfs destroy "$snapname"
|
zfs destroy "$snapname"
|
||||||
else
|
else
|
||||||
lasttime="$curtime"
|
lasttime="$curtime"
|
||||||
|
|
Loading…
Reference in a new issue