Skip to content

Commit

Permalink
Errors should not increment for ever
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Sep 12, 2015
1 parent 0dd76f7 commit e11b3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *stats) Error() {
func (s *stats) Reset() stats {
s.mut.Lock()
ns := *s
s.announces, s.queries, s.answers = 0, 0, 0
s.announces, s.queries, s.answers, s.errors = 0, 0, 0, 0
s.reset = time.Now()
s.mut.Unlock()
return ns
Expand Down

0 comments on commit e11b3dd

Please # to comment.