MCPcopy Create free account
hub / github.com/cortexproject/cortex / minNonZero

Function minNonZero

pkg/ingester/limiter.go:354–360  ·  view source on GitHub ↗
(first, second int)

Source from the content-addressed store, hash-verified

352}
353
354func minNonZero(first, second int) int {
355 if first == 0 || (second != 0 && first > second) {
356 return second
357 }
358
359 return first
360}

Calls

no outgoing calls

Tested by 1

TestLimiter_minNonZeroFunction · 0.68