runtime=${runtime#-} VALEUR ABSOLUE

This commit is contained in:
fred 2021-08-06 00:30:58 +02:00
parent 8cc76f220b
commit fdc1eab051
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ else
total_old_minutes=$((10#$old_hour*60 + 10#$old_min))
total_minutes=$((10#$hour*60 + 10#$min))
runtime=$((total_minutes - total_old_minutes))
runtime=${runtime#-}
fi
# RUN TIME $runtime