storage: instantiate correct block ranges
This commit is contained in:
parent
7ebd74b84b
commit
0c81d5f719
|
@ -58,7 +58,7 @@ type Options struct {
|
|||
func Open(path string, r prometheus.Registerer, opts *Options) (*tsdb.DB, error) {
|
||||
// Start with smallest block duration and create exponential buckets until the exceed the
|
||||
// configured maximum block duration.
|
||||
rngs := tsdb.ExponentialBlockRanges(int64(time.Duration(opts.MinBlockDuration).Seconds()*1000), 3, 10)
|
||||
rngs := tsdb.ExponentialBlockRanges(int64(time.Duration(opts.MinBlockDuration).Seconds()*1000), 10, 3)
|
||||
|
||||
for i, v := range rngs {
|
||||
if v > int64(time.Duration(opts.MaxBlockDuration).Seconds()*1000) {
|
||||
|
|
Loading…
Reference in New Issue