X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fcrontab.sh;h=f4c7b4a8e67adf341b212fe7da73ed3c3dd8d6b2;hb=b9af9f1c0de6a1735b492f5c793a87a8fce218cc;hp=67edb84e25211a91c760d49a68dd13679c6abba8;hpb=c145de30a55fb5c64c023236fd149d336f5435a3;p=helm.git diff --git a/helm/matita/scripts/crontab.sh b/helm/matita/scripts/crontab.sh index 67edb84e2..f4c7b4a8e 100644 --- a/helm/matita/scripts/crontab.sh +++ b/helm/matita/scripts/crontab.sh @@ -21,15 +21,15 @@ fi ((DELTA=$CUR_TIME - $OLD_TIME)) if [ $DELTA -lt 0 ]; then - ((DELTA=$DELTA * -1)) + PERC=0 +else + ((PERC=100 * $DELTA)) + ((PERC=$PERC / $OLD_TIME)) fi -((PERC=100 * $DELTA)) -((PERC=$PERC / $OLD_TIME)) - if [ $PERC -ge 5 ]; then cat <