Fix printf usage in _wrap_build()
On some systems using floating-point instead of decimal results in the build time being displayed as "nan:nan". Test: m, "build completed successfully (02:26 (mm:ss))" Change-Id: I7a2b401903b63117a7718cc5aa2a0d5610b57ca2
This commit is contained in:
parent
4bd23deef4
commit
0ee73fcd93
1 changed files with 3 additions and 3 deletions
|
@ -114,11 +114,11 @@ function _wrap_build()
|
|||
echo -n "${color_failed}#### failed to build some targets "
|
||||
fi
|
||||
if [ $hours -gt 0 ] ; then
|
||||
printf "(%02g:%02g:%02g (hh:mm:ss))" $hours $mins $secs
|
||||
printf "(%02d:%02d:%02d (hh:mm:ss))" $hours $mins $secs
|
||||
elif [ $mins -gt 0 ] ; then
|
||||
printf "(%02g:%02g (mm:ss))" $mins $secs
|
||||
printf "(%02d:%02d (mm:ss))" $mins $secs
|
||||
elif [ $secs -gt 0 ] ; then
|
||||
printf "(%s seconds)" $secs
|
||||
printf "(%d seconds)" $secs
|
||||
fi
|
||||
echo " ####${color_reset}"
|
||||
echo
|
||||
|
|
Loading…
Reference in a new issue