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

Function getRangeStart

pkg/storage/parquet/util.go:30–38  ·  view source on GitHub ↗
(mint, tr int64)

Source from the content-addressed store, hash-verified

28}
29
30func getRangeStart(mint, tr int64) int64 {
31 // Compute start of aligned time range of size tr closest to the current block's start.
32 // This code has been copied from TSDB.
33 if mint >= 0 {
34 return tr * (mint / tr)
35 }
36
37 return tr * ((mint - tr + 1) / tr)
38}

Callers 1

getBlockTimeRangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected