diff --git a/cmd/perf-tests.go b/cmd/perf-tests.go index 1487f9373..51488fec8 100644 --- a/cmd/perf-tests.go +++ b/cmd/perf-tests.go @@ -261,8 +261,8 @@ func (n *netPerfRX) ActiveConnections() uint64 { } func (n *netPerfRX) Reset() { - n.RLock() - defer n.RUnlock() + n.Lock() + defer n.Unlock() n.RX = 0 n.RXSample = 0 n.lastToConnect = time.Time{}