Skip to content
Browse files

Update issue 26

Incorrectly set a default totaltime of 1
  • Loading branch information...
1 parent c5c6e7d commit a212b20ab16954bcb6db797c9eca5b66ac9d0b5e rip@devco.net committed Sep 3, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 ruby-pdns/lib/pdns/resolvers.rb
View
2 ruby-pdns/lib/pdns/resolvers.rb
@@ -25,7 +25,7 @@ def self.add_resolver(name, options = {}, &block)
# only set this if there aren't already stats, else we zero the counts after
# each periodic record reload
- @@resolverstats[name] = {:usagecount => 0, :totaltime => 1} unless @@resolverstats[name]
+ @@resolverstats[name] = {:usagecount => 0, :totaltime => 0} unless @@resolverstats[name]
end
# Clears out all the resolvers that are supported, this should be called before loading new ones from disk

0 comments on commit a212b20

Please sign in to comment.
Something went wrong with that request. Please try again.