Skip to content

Commit

Permalink
fix receipts to start from before the interval
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkpc138 committed Dec 20, 2024
1 parent 192462f commit bf23ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lobster/sink/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (e *LogExporter) export(current time.Time, uploader uploader.Uploader, orde
glog.Error(err)
}
if !ok {
receipt = e.counter.Produce(0, current.Add(-interval), interval, current)
receipt = e.counter.Produce(0, current.Add(-interval), interval, current.Add(-interval))
}

defer func(key string, receipt *counter.Receipt) {
Expand Down

0 comments on commit bf23ce7

Please sign in to comment.