Skip to content

Commit

Permalink
fix: correct SC2323
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez authored Jan 11, 2023
1 parent 5c16e8d commit 4a5b730
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ for uri in $uris; do
totalelapseds=0
totalalloweds=$timeout
while [[ "$totalelapseds" -lt "$totalalloweds" ]] && ! nc -z -w 1 "$host" "$port"; do
elapseds="$((($(date +%s) - timestamp)))"
current_date="$(date +%s)"
elapseds="$((current_date - timestamp))"
if [[ $elapseds -lt 1 ]]; then
sleep 1
elapseds=$((elapseds + 1))
Expand Down

0 comments on commit 4a5b730

Please sign in to comment.