|
|
|
|
@ -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"))
|
|
|
|
|
|