From ba0deab0b778e7f3b81a5c2c46846f07b1e9d7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BCgler?= Date: Tue, 3 Sep 2024 13:02:33 +0200 Subject: [PATCH] Fix the run time calculation (rounded to integer hours in log file) --- recon_surf/recon-surf.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recon_surf/recon-surf.sh b/recon_surf/recon-surf.sh index d3eba901..19feb9dc 100755 --- a/recon_surf/recon-surf.sh +++ b/recon_surf/recon-surf.sh @@ -1077,8 +1077,7 @@ fi # Collect info EndTime=$(date) tSecEnd=$(date '+%s') -tRunHours=$(($((tSecEnd - tSecStart))/3600)) -tRunHours=$(printf %6.3f "$tRunHours") +tRunHours=$(printf %6.3f "$(bc <<< "($tSecEnd - $tSecStart) / 3600")") { echo ""