Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
354
func
minNonZero(first, second int) int {
355
if
first == 0 || (second != 0 && first > second) {
356
return
second
357
}
358
359
return
first
360
}
Callers
10
TestLimiter_minNonZero
Function · 0.85
formatMaxSeriesPerUserError
Method · 0.85
formatMaxNativeHistogramsSeriesPerUserError
Method · 0.85
formatMaxSeriesPerMetricError
Method · 0.85
formatMaxMetadataPerUserError
Method · 0.85
formatMaxMetadataPerMetricError
Method · 0.85
formatMaxSeriesPerLabelSetError
Method · 0.85
maxSeriesPerMetric
Method · 0.85
maxMetadataPerMetric
Method · 0.85
maxByLocalAndGlobal
Method · 0.85
Calls
no outgoing calls
Tested by
1
TestLimiter_minNonZero
Function · 0.68