Skip to content

Commit 8cdcbb9

Browse files
authored
Merge pull request #570 from dkuegler/fix/run-time-counter
Fix the run time calculation (rounded to integer hours in log file)
2 parents 9022bf8 + ba0deab commit 8cdcbb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

recon_surf/recon-surf.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,8 +1077,7 @@ fi
10771077
# Collect info
10781078
EndTime=$(date)
10791079
tSecEnd=$(date '+%s')
1080-
tRunHours=$(($((tSecEnd - tSecStart))/3600))
1081-
tRunHours=$(printf %6.3f "$tRunHours")
1080+
tRunHours=$(printf %6.3f "$(bc <<< "($tSecEnd - $tSecStart) / 3600")")
10821081

10831082
{
10841083
echo ""

0 commit comments

Comments
 (0)