Skip to content

Commit

Permalink
fix: baseline to look 1 hour in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Apr 27, 2022
1 parent ecc6e65 commit b68e62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otelpyroscope.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (s spanWrapper) setBaselineURLs() {
}

q := make(url.Values, 9)
from := strconv.FormatInt(s.startTime.Unix(), 10)
from := strconv.FormatInt(s.startTime.Unix()-3600, 10)
until := strconv.FormatInt(time.Now().Unix(), 10)
baselineQuery := s.p.config.AppName + `.cpu{` + b.String() + `}`

Expand Down

0 comments on commit b68e62b

Please sign in to comment.