MCPcopy
hub / github.com/prometheus/prometheus / exponential

Function exponential

tsdb/db.go:2648–2657  ·  view source on GitHub ↗
(d, minD, maxD time.Duration)

Source from the content-addressed store, hash-verified

2646}
2647
2648func exponential(d, minD, maxD time.Duration) time.Duration {
2649 d *= 2
2650 if d < minD {
2651 d = minD
2652 }
2653 if d > maxD {
2654 d = maxD
2655 }
2656 return d
2657}
2658
2659// closeAll closes all given closers while recording all errors.
2660func closeAll(cs []io.Closer) error {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…