Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from cbrgm/fix-output
Browse files Browse the repository at this point in the history
Fix wrong output message on failed tcp ping
  • Loading branch information
cbrgm authored Sep 5, 2019
2 parents 86f6834 + 8685041 commit 793db1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func appAction(c *cli.Context) error {

if tcp.Failed {
fmt.Printf("%s via tcp seq=%d port=%d timeout=%d failed \n", tcp.Host, tcp.Sequence, tcp.Port, tcp.Timeout)
continue
}
fmt.Printf("%s via tcp seq=%d port=%d timeout=%d time=%.2f ms \n", tcp.Host, tcp.Sequence, tcp.Port, tcp.Timeout, tcp.Latency)
}
Expand Down

0 comments on commit 793db1f

Please sign in to comment.