Skip to content
Browse files

format time to 2 floating digits

  • Loading branch information...
1 parent 6a359c4 commit 89334e2d8945c61cd575aefc7554fe2cb7be23ab @hone committed Jun 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/language_pack/rails3.rb
  2. +1 −1 lib/language_pack/ruby.rb
View
2 lib/language_pack/rails3.rb
@@ -52,7 +52,7 @@ def run_assets_precompile_rake_task
if $?.success?
log "assets_precompile", :status => "success"
- puts "Asset precompilation completed (#{time}s)"
+ puts "Asset precompilation completed (#{"%.2f" % time}s)"
else
log "assets_precompile", :status => "failure"
puts "Precompiling assets failed, enabling runtime asset compilation"
View
2 lib/language_pack/ruby.rb
@@ -501,7 +501,7 @@ def run_assets_precompile_rake_task
topic "Running: rake assets:precompile"
time = Benchmark.realtime { pipe("env PATH=$PATH:bin bundle exec rake assets:precompile 2>&1") }
if $?.success?
- puts "Asset precompilation completed (#{time}s)"
+ puts "Asset precompilation completed (#{"%.2f" % time}s)"
end
end
end

0 comments on commit 89334e2

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