From 2c56abf4d81204cf168686d45b8ce62e596586b1 Mon Sep 17 00:00:00 2001 From: fumiama Date: Sun, 26 Dec 2021 14:15:10 +0800 Subject: [PATCH] fix: add wait --- utils/icmp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/icmp.go b/utils/icmp.go index 825ae709..886c3beb 100644 --- a/utils/icmp.go +++ b/utils/icmp.go @@ -29,6 +29,7 @@ func RunICMPPingLoop(ipport string, count int) (r ICMPPingResult) { r.PacketsLoss-- durs = append(durs, d) } + time.Sleep(time.Millisecond * 100) } if len(durs) > 0 {