]> matita.cs.unibo.it Git - helm.git/commitdiff
in case of performace improvement there is no performace loss message
authorEnrico Tassi <enrico.tassi@inria.fr>
Fri, 1 Jul 2005 08:06:46 +0000 (08:06 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Fri, 1 Jul 2005 08:06:46 +0000 (08:06 +0000)
helm/matita/scripts/crontab.sh

index 67edb84e25211a91c760d49a68dd13679c6abba8..e3f8243e519295423a5c2c0e6efaa7d5cb48ef4b 100644 (file)
@@ -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 <<EOT
   REPORT FOR `date`