We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4be9b commit dc52b11Copy full SHA for dc52b11
pingClient.go
@@ -742,7 +742,7 @@ func (p *PingClient) StatisticsPerIP(ipAddr *net.IPAddr) *Statistics {
742
var ipStr string = ipAddr.IP.String()
743
globalmu.RLock()
744
loss := float64(p.PacketsSent[ipStr]-p.PacketsRecv[ipStr]) / float64(p.PacketsSent[ipStr]) * 100
745
- globalmu.Unlock()
+ globalmu.RUnlock()
746
var min, max, total time.Duration
747
if len(p.rtts[ipStr]) > 0 {
748
min = p.rtts[ipStr][0]
0 commit comments