Fixes deprecated arithmetic expansion for bashate
$[...] is deprecated for $((...)) Change-Id: I432b6af3a04e4bb2196c53be84375a2653ae6a30
This commit is contained in:
parent
928ffa071d
commit
46a1638480
@ -49,7 +49,7 @@ function successerator() {
|
||||
exit_fail
|
||||
fi
|
||||
# Print the time that the method completed.
|
||||
OP_TOTAL_SECONDS="$[$(date +%s) - $OP_START_TIME]"
|
||||
OP_TOTAL_SECONDS="$(( $(date +%s) - $OP_START_TIME ))"
|
||||
REPORT_OUTPUT="${OP_TOTAL_SECONDS} seconds"
|
||||
REPORT_DATA+="- Operation: [ $@ ]\t${REPORT_OUTPUT}\tNumber of Attempts [ ${RETRY} ]\n"
|
||||
echo -e "Run Time = ${REPORT_OUTPUT}"
|
||||
@ -173,7 +173,7 @@ function loopback_create() {
|
||||
|
||||
function exit_state() {
|
||||
set +x
|
||||
TOTALSECONDS="$[$(date +%s) - $STARTTIME]"
|
||||
TOTALSECONDS="$(( $(date +%s) - $STARTTIME ))"
|
||||
info_block "Run Time = ${TOTALSECONDS} seconds || $(($TOTALSECONDS / 60)) minutes"
|
||||
if [ "${1}" == 0 ];then
|
||||
info_block "Status: Success"
|
||||
|
Loading…
Reference in New Issue
Block a user