Errors should not increment for ever

This commit is contained in:
Jakob Borg 2015-09-12 22:44:59 +02:00
parent 4c9a26dbca
commit cbe24d0c61
1 changed files with 1 additions and 1 deletions

View File

@ -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