Skip to content

Commit

Permalink
Merge pull request #69 from azmmmm/main
Browse files Browse the repository at this point in the history
Fixup README.md
  • Loading branch information
SuperQ authored Oct 11, 2023
2 parents 4db3272 + 6af23bf commit 98d3874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ pinger.OnRecv = func(pkt *probing.Packet) {

pinger.OnDuplicateRecv = func(pkt *probing.Packet) {
fmt.Printf("%d bytes from %s: icmp_seq=%d time=%v ttl=%v (DUP!)\n",
pkt.Nbytes, pkt.IPAddr, pkt.Seq, pkt.Rtt, pkt.Ttl)
pkt.Nbytes, pkt.IPAddr, pkt.Seq, pkt.Rtt, pkt.TTL)
}

pinger.OnFinish = func(stats *ping.Statistics) {
pinger.OnFinish = func(stats *probing.Statistics) {
fmt.Printf("\n--- %s ping statistics ---\n", stats.Addr)
fmt.Printf("%d packets transmitted, %d packets received, %v%% packet loss\n",
stats.PacketsSent, stats.PacketsRecv, stats.PacketLoss)
Expand Down

0 comments on commit 98d3874

Please sign in to comment.