diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-09-05 14:22:10 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-09-05 14:22:57 +0200 |
commit | de0e7507de826bf77fd57cc2a51e27388cb62ff7 (patch) | |
tree | 60d923008716ef32943bb6caef4b6faf504a0970 /activesupport | |
parent | cf0467c6425a528acfe2cb14709253a8a4a99b37 (diff) | |
download | rails-de0e7507de826bf77fd57cc2a51e27388cb62ff7.tar.gz rails-de0e7507de826bf77fd57cc2a51e27388cb62ff7.tar.bz2 rails-de0e7507de826bf77fd57cc2a51e27388cb62ff7.zip |
Changed all benchmarking reports to be in milliseconds
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/CHANGELOG | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 0170b95b1b..604462c706 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *Edge* +* Changed cache benchmarking to be reported in milliseconds [DHH] + * Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances are now correctly unmarshaled with a utc zone instead of the system local zone [#900 state:resolved] [Luca Guidi, Geoff Buesing] * Add Array#in_groups which splits or iterates over the array in specified number of groups. #579. [Adrian Mugnolo] Example: diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 95eae3a77e..51a6309dce 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -62,7 +62,7 @@ module ActiveSupport write(key, value, options) @logger_off = false - log("write (will save #{'%.5f' % seconds})", key, nil) + log("write (will save #{'%.2f' % (seconds * 1000)}ms)", key, nil) value end |