MCPcopy Index your code
hub / github.com/cortexproject/cortex / convertMsToDuration

Function convertMsToDuration

pkg/api/queryapi/util.go:110–112  ·  view source on GitHub ↗
(unixMs int64)

Source from the content-addressed store, hash-verified

108}
109
110func convertMsToDuration(unixMs int64) time.Duration {
111 return time.Duration(unixMs) * time.Millisecond
112}
113
114func DecorateWithParamName(err error, field string) error {
115 errTmpl := "invalid parameter %q; %v"

Callers 5

Test_ConvertFunction · 0.85
RangeQueryHandlerMethod · 0.85
InstantQueryHandlerMethod · 0.85
extractQueryOptsFunction · 0.85
createTestLogicalPlanFunction · 0.85

Calls

no outgoing calls

Tested by 2

Test_ConvertFunction · 0.68
createTestLogicalPlanFunction · 0.68