Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle 'ping: sendto: No route to host'; fixes denilsonsa#24 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prettyping
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ BEGIN {
print_statistics_bar_if_terminal()
} else if ( $0 ~ /^.*onnected to.*, seq=[0-9]+ time=[0-9.]+ *ms/ ) {
# Sample line from httping:
# connected to 200.149.119.168:80 (273 bytes), seq=0 time=129.86 ms
# connected to 200.149.119.168:80 (273 bytes), seq=0 time=129.86 ms
if ( other_line_times >= 2 ) {
other_line_finished_repeating()
}
Expand Down Expand Up @@ -813,7 +813,7 @@ BEGIN {
# Do nothing on blank lines.
} else if ( $0 == "error shutting down ssl" ) {
# Common error message when using httping, ignore it.
} else if ( $0 ~ /^Request timeout for icmp_seq [0-9]+/ ) {
} else if ($0 ~ /^ping: sendto: No route to host/ || $0 ~ /^Request timeout for icmp_seq [0-9]+/) {
# Reply timeout is printed on Mac OS X.

if ( other_line_times >= 2 ) {
Expand Down