Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Update issue 26
Incorrectly set a default totaltime of 1
  • Loading branch information
rip@devco.net committed Sep 3, 2009
1 parent c5c6e7d commit a212b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby-pdns/lib/pdns/resolvers.rb
Expand Up @@ -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
Expand Down

0 comments on commit a212b20

Please sign in to comment.