Skip to content

Commit

Permalink
proper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg committed Sep 28, 2023
1 parent b4df706 commit 6bf0548
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/graphite/convert/whisperconverter/whisper.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ func ReadPoints(w Archive, name string) ([]whisper.Point, error) {
if maxTs == 0 {
if i > 0 {
// If there are no points in the high-res archives, we have to bump up
// maxTs by the difference in retention to the highest archive so that
// this point is validly in the retention for this archive. This can
// happen when the only points added to a whisper archive are
// maxTs by the difference in retention to the next higher archive so
// that this point is validly in the retention for this archive. This
// can happen when the only points added to a whisper archive are
// significantly older than "Now()" at the time of writing, as happens
// during our e2e test.
maxTsOffset = archives[i].Retention() - archives[0].Retention()
maxTsOffset = archives[i-1].Retention()
}
points, err := w.DumpArchive(i)
if err != nil {
Expand Down

0 comments on commit 6bf0548

Please sign in to comment.