Skip to content

Commit

Permalink
ping
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Jun 1, 2015
1 parent 53bfd84 commit 6aa352d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/getssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ then
exit 0
fi
ping=/tmp/ping-$ip
ping -c 5 -t 5 $ip > $ping
if [ $(uname) = "Darwin" ]
then
ping -c 5 -t 5 $ip > $ping
else
ping -c 5 -w 5 $ip > $ping
fi
loss=$(grep -Po "\w+%" $ping)
c=$(grep -c "time=" $ping)
if [ $c -eq 0 ]
Expand Down

0 comments on commit 6aa352d

Please sign in to comment.