ci: simplify unnecessarily complex printf

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28344>
This commit is contained in:
Eric Engestrom
2024-03-22 19:13:55 +00:00
committed by Marge Bot
parent ed45e373bf
commit 9be380c6da

View File

@@ -19,7 +19,7 @@ export JOB_START_S=$(date -u +"%s" -d "${CI_JOB_STARTED_AT:?}")
function get_current_minsec {
DATE_S=$(date -u +"%s")
CURR_TIME=$((DATE_S-JOB_START_S))
echo "$(printf "%02d" $((CURR_TIME/60))):$(printf "%02d" $((CURR_TIME%60)))"
printf "%02d:%02d" $((CURR_TIME/60)) $((CURR_TIME%60))
}
function error {