Skip to content

Commit 508abb0

Browse files
mvsusppengk19
authored andcommitted
Update displaytime.sh (aws#901)
1 parent dfab688 commit 508abb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci-scripts/displaytime.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ echo =================== $1 execution time ===================
1818

1919
start_time=$2
2020
end_time=`date +%s`
21-
total_time=$(expr $end_time - $start_time)
21+
total_time=$(expr $end_time - $start_time + 1)
2222
hours=$((total_time/60/60%24))
2323
minutes=$((total_time/60%60))
2424
secs=$((total_time%60))
2525

2626
(( $hours > 0 )) && printf '%d hours ' $hours
2727
(( $minutes > 0 )) && printf '%d minutes ' $minutes
2828
(( $hours > 0 || $minutes > 0 )) && printf 'and '
29-
printf '%d seconds\n\n' $secs
29+
printf '%d seconds\n\n' $secs

0 commit comments

Comments
 (0)