From c83e7bd5de889f6a44e56a6f53d63bef0ff87588 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Tue, 8 Apr 2014 19:42:57 +0200 Subject: [PATCH] there should have been "bc" but this is better --- zb-cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zb-cleanup b/zb-cleanup index cadb717..4b69990 100755 --- a/zb-cleanup +++ b/zb-cleanup @@ -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"