use color red adjust 50ms

master
sre 4 years ago
parent 88c7b93972
commit d27701a025

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

Loading…
Cancel
Save