From 8685041e460b3f303b5d91405a0cdae4b430ba69 Mon Sep 17 00:00:00 2001 From: cbrgm Date: Fri, 6 Sep 2019 00:27:49 +0200 Subject: [PATCH] Fix wrong output message on failed tcp ping --- cmd/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/main.go b/cmd/main.go index 862997a..eeb0d57 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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) }