Skip to content

Commit 90361e3

Browse files
authored
Update displaytime.sh (#901)
1 parent b8b01a2 commit 90361e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci-scripts/displaytime.sh

Lines changed: 2 additions & 2 deletions
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)