From d27701a02553c387b053d150ab0f1649015c133b Mon Sep 17 00:00:00 2001 From: sre Date: Mon, 20 Jun 2022 18:42:05 +0800 Subject: [PATCH] use color red adjust 50ms --- goping/goping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goping/goping.go b/goping/goping.go index abc2aa1..d93b5c8 100644 --- a/goping/goping.go +++ b/goping/goping.go @@ -156,7 +156,7 @@ func Ping(domain string, PS int) { os.Exit(0) fmt.Println("Got signal:", s) default: - if dur <= 30 { + if dur <= 50 { fmt.Printf("%d bytes from %s (%s): icmp_seq=%d ttl=53 time=%.3f %s\n", len, raddr.String(), raddr.String(), icmp_seq, dur, green("ms")) } else if dur <= 500 { fmt.Printf("%d bytes from %s (%s): icmp_seq=%d ttl=53 time=%.3f %s\n", len, raddr.String(), raddr.String(), icmp_seq, dur, yellow("ms"))