MCPcopy Create free account
hub / github.com/AdRoll/baker / countInvalid

Method countInvalid

stats.go:184–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182}
183
184func (sd *StatsDumper) countInvalid() int64 {
185 sd.t.mu.RLock()
186 defer sd.t.mu.RUnlock()
187
188 sum := int64(0)
189 for _, i := range sd.t.invalid {
190 sum = sum + i
191 }
192 return sum
193}
194
195// Run starts dumping stats every second on standard output. Call stop() to
196// stop periodically dumping stats, this prints stats one last time.

Callers 1

dumpNowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected