incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1170775 - /incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb
Date Wed, 14 Sep 2011 19:11:27 GMT
Author: mfojtik
Date: Wed Sep 14 19:11:26 2011
New Revision: 1170775

URL: http://svn.apache.org/viewvc?rev=1170775&view=rev
Log:
Added missing X-Backend-Runtime to show action

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb?rev=1170775&r1=1170774&r2=1170775&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb Wed Sep
14 19:11:26 2011
@@ -92,6 +92,7 @@ module ApplicationHelper
     @benchmark = Benchmark.measure do
       @element = driver.send(model, credentials, { :id => params[:id]} )
     end
+    headers['X-Backend-Runtime'] = @benchmark.real.to_s
     instance_variable_set("@#{model}", @element)
     if @element
       respond_to do |format|



Mime
View raw message