mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
fix print of total elapsed time
BUG=none TEST=run build_image, happen to finish on a time with less than 10 seconds in it, watch the missing 0-padding Review URL: http://codereview.chromium.org/3050047
This commit is contained in:
parent
4c5d388cb5
commit
6d49138087
@ -454,5 +454,5 @@ print_time_elapsed() {
|
|||||||
elapsed_seconds="$(( $end_time - $start_time ))"
|
elapsed_seconds="$(( $end_time - $start_time ))"
|
||||||
minutes="$(( $elapsed_seconds / 60 ))"
|
minutes="$(( $elapsed_seconds / 60 ))"
|
||||||
seconds="$(( $elapsed_seconds % 60 ))"
|
seconds="$(( $elapsed_seconds % 60 ))"
|
||||||
echo "Elapsed time: ${minutes}:${seconds}"
|
echo "Elapsed time: ${minutes}m${seconds}s"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user