Skip to content

Instantly share code, notes, and snippets.

@jesbrd
Created August 23, 2018 14:57
Show Gist options
  • Save jesbrd/9b5524294fae19dbc5a96a3488f414bd to your computer and use it in GitHub Desktop.
Save jesbrd/9b5524294fae19dbc5a96a3488f414bd to your computer and use it in GitHub Desktop.
test_it() {
SECONDS=0
local connects=0
while :; do
((connects++))
if ((connects >= 10000000 && SECONDS >= 20)); then
echo $connects
echo $SECONDS
break;
fi
done
}
test_it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment