X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fcrontab.sh;h=e3f8243e519295423a5c2c0e6efaa7d5cb48ef4b;hb=6857e22b8a58162893119f7747c5848031fd59ce;hp=67edb84e25211a91c760d49a68dd13679c6abba8;hpb=c145de30a55fb5c64c023236fd149d336f5435a3;p=helm.git diff --git a/helm/matita/scripts/crontab.sh b/helm/matita/scripts/crontab.sh index 67edb84e2..e3f8243e5 100644 --- a/helm/matita/scripts/crontab.sh +++ b/helm/matita/scripts/crontab.sh @@ -21,11 +21,11 @@ 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 <