Skip to content

Commit

Permalink
Use correct variable for checking if we're ready to send
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Nov 29, 2023
1 parent 83d200c commit 099dce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (m *metrics) sync() {
for {
select {
case <-m.ticker.C:
if m.errors == 0 {
if m.skips == 0 {
m.sendMetrics()
} else {
m.decrementSkip()
Expand Down

0 comments on commit 099dce8

Please sign in to comment.