MCPcopy
hub / github.com/evilsocket/opensnitch / OnIgnored

Method OnIgnored

daemon/statistics/stats.go:147–152  ·  view source on GitHub ↗

OnIgnored increases the counter of ignored and accepted connections.

()

Source from the content-addressed store, hash-verified

145
146// OnIgnored increases the counter of ignored and accepted connections.
147func (s *Statistics) OnIgnored() {
148 s.Lock()
149 defer s.Unlock()
150 s.Ignored++
151 s.Accepted++
152}
153
154func (s *Statistics) incMap(m *map[string]uint64, key string) {
155 if val, found := (*m)[key]; found == false {

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected