Skip to content

Commit

Permalink
Fix typo of function name
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwu666666 committed May 29, 2024
1 parent 85ca009 commit 772259d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ restore_net() {
done < "$default_net_state"
}

check_resote_net() {
check_restore_net() {
for ((i=1; i <= 5; i++))
do
net_check=0
Expand Down Expand Up @@ -126,7 +126,7 @@ main() {
if [ "$ping_state" -ne 0 ]; then
echo "Error: target $dst_ip is unavaliable"
echo "Info: Restore default network ..."
check_resote_net
check_restore_net
exit 1
fi
echo "Info: Starting to test TCP ping stress."
Expand All @@ -145,7 +145,7 @@ main() {
seconds=$((interval % 60))
echo "Time interval: $hours hours, $minutes minutes, $seconds seconds"
echo "Info: Restore default network ..."
check_resote_net
check_restore_net
if [ "$status" -ne 0 ]; then
exit 1
fi
Expand Down

0 comments on commit 772259d

Please sign in to comment.