Skip to content

Commit

Permalink
fix(module): correct bug introduced by linter fixes :)
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Sep 7, 2023
1 parent f149c16 commit 90681db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ func (rep *replayer) addMetricSamples(samples []metrics.SampleContainer) {
})

if firstTime.Sub(rep.timestamp) > rep.options.Period {
samples = rep.buffer.GetBufferedSamples()
flushed := rep.buffer.GetBufferedSamples()
now := firstTime

rep.updateAndSend(
samples,
flushed,
newMeter(rep.options.Period, now, rep.options.Tags),
snapshotEvent,
now,
)
rep.updateAndSend(samples, rep.cumulative, cumulativeEvent, now)
rep.updateAndSend(flushed, rep.cumulative, cumulativeEvent, now)

rep.timestamp = now
}
Expand Down

0 comments on commit 90681db

Please sign in to comment.