We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfab688 commit 508abb0Copy full SHA for 508abb0
ci-scripts/displaytime.sh
@@ -18,12 +18,12 @@ echo =================== $1 execution time ===================
18
19
start_time=$2
20
end_time=`date +%s`
21
-total_time=$(expr $end_time - $start_time)
+total_time=$(expr $end_time - $start_time + 1)
22
hours=$((total_time/60/60%24))
23
minutes=$((total_time/60%60))
24
secs=$((total_time%60))
25
26
(( $hours > 0 )) && printf '%d hours ' $hours
27
(( $minutes > 0 )) && printf '%d minutes ' $minutes
28
(( $hours > 0 || $minutes > 0 )) && printf 'and '
29
-printf '%d seconds\n\n' $secs
+printf '%d seconds\n\n' $secs
0 commit comments