diff options
| author | Paul Berry <paul@puppetlabs.com> | 2010-12-29 11:53:35 -0800 |
|---|---|---|
| committer | Paul Berry <paul@puppetlabs.com> | 2010-12-30 11:49:04 -0800 |
| commit | 1550bbb218719590431575cb4c200e620680a79d (patch) | |
| tree | 293408db21d2cf72be32cf674390784e1fee12f4 /lib/puppet | |
| parent | 4cc42cda270cd1c04b22bf6e5452c550fb537ebf (diff) | |
| download | puppet-1550bbb218719590431575cb4c200e620680a79d.tar.gz puppet-1550bbb218719590431575cb4c200e620680a79d.tar.xz puppet-1550bbb218719590431575cb4c200e620680a79d.zip | |
(#5715) Added total time metric to apply reports.
This was a feature that was present in 0.25.x and was inadvertently
dropped from 2.6.x.
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/transaction/report.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/transaction/report.rb b/lib/puppet/transaction/report.rb index 8a928454f..bcdefd08d 100644 --- a/lib/puppet/transaction/report.rb +++ b/lib/puppet/transaction/report.rb @@ -149,6 +149,8 @@ class Puppet::Transaction::Report metrics[name.to_s.downcase] = value end + metrics["total"] = metrics.values.inject(0) { |a,b| a+b } + add_metric(:time, metrics) end end |
