From fdc1eab051311e5ca5d96b9b07085d80c7c3b97d Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 6 Aug 2021 00:30:58 +0200 Subject: [PATCH] runtime=${runtime#-} VALEUR ABSOLUE --- cron_MINUTE.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 84e8b0e..dc1bc49 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -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