diff --git a/optimizer.sh b/optimizer.sh index 05b497f..0f60a9b 100755 --- a/optimizer.sh +++ b/optimizer.sh @@ -40,7 +40,7 @@ alive() { local WAIT=$((3600 + $RANDOM % 7200)) # from 1 to 2 hours local TIMEOUT="600" # 10 minutes wait before dismounting the tape while [ $PID_ALIVE -eq 1 ]; do - log "ALIVE [$$] - Waiting ${WAIT} secondi..." + log "ALIVE [$$] - Waiting ${WAIT} seconds..." sleep "${WAIT}" log "ALIVE [$$] - Trying to unload drive ${3} into slot ${2} (Timeout: ${TIMEOUT} seconds)..." timeout "${TIMEOUT}" mtx -f "${1}" unload "${2}" "${3}" # Kill after ${TIMEOUT} seconds