Skip to content

Commit

Permalink
fix step calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
mtanda committed Jun 6, 2019
1 parent 126be8e commit 6cb5281
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io/ioutil"
"math"
"sort"
"strings"
"time"

"github.com/aws/aws-sdk-go/aws"
Expand Down Expand Up @@ -489,7 +490,7 @@ func (archiver *Archiver) Query(q *prompb.Query, maximumStep int64, lookbackDelt
defer querier.Close()

step := maximumStep
if step > 60 {
if strings.Index(q.Hints.Func, "_over_time") >= 0 && step > 60 {
step = 60 // temporary fix
}

Expand Down

0 comments on commit 6cb5281

Please sign in to comment.