summaryrefslogtreecommitdiffstats
path: root/lib/puppet/metric.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-06-29 19:44:25 +0000
committerLuke Kanies <luke@madstop.com>2005-06-29 19:44:25 +0000
commitbb7e2833f0ea9c97d55fcb76e5811c035161256f (patch)
tree560129341856ab4a29d9c3c9a40529627de521e4 /lib/puppet/metric.rb
parentc16ca53ea8d62ffb8e02afddb8ae93cfbae800b2 (diff)
downloadpuppet-bb7e2833f0ea9c97d55fcb76e5811c035161256f.tar.gz
puppet-bb7e2833f0ea9c97d55fcb76e5811c035161256f.tar.xz
puppet-bb7e2833f0ea9c97d55fcb76e5811c035161256f.zip
fixing debugging to severely reduce output but allow it when debugging a specific service
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@319 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/metric.rb')
-rw-r--r--lib/puppet/metric.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/metric.rb b/lib/puppet/metric.rb
index d66105bdf..ba2b1557e 100644
--- a/lib/puppet/metric.rb
+++ b/lib/puppet/metric.rb
@@ -22,14 +22,14 @@ module Puppet
end
def Metric.gather
- metrics = Metric.init
+ Metric.init
# first gather stats about all of the types
Puppet::Type.eachtype { |type|
type.each { |instance|
- metrics[type][:total] += 1
+ @@typemetrics[type][:total] += 1
if instance.managed
- metrics[type][:managed] += 1
+ @@typemetrics[type][:managed] += 1
end
}
}