there should have been "bc" but this is better

This commit is contained in:
Mirek Kratochvil 2014-04-08 19:42:57 +02:00
parent d55edaf2a7
commit c83e7bd5de

View file

@ -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"