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

Method Less

pkg/querier/tripperware/merge.go:23–23  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

21func (a byFirstTime) Len() int { return len(a) }
22func (a byFirstTime) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
23func (a byFirstTime) Less(i, j int) bool { return a[i].minTime() < a[j].minTime() }
24
25func (resp *PrometheusResponse) minTime() int64 {
26 data := resp.GetData()

Callers

nothing calls this directly

Calls 1

minTimeMethod · 0.45

Tested by

no test coverage detected