ref: refs/heads/master
commit ab778404e403372aeaa5b89f571cc13dd1e91d5d
Author: Duncan Mac-Vicar P
Date: Mon Jul 20 14:43:01 2009 +0200
pass the time as timestamps
---
.../status/app/controllers/status_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/status/app/controllers/status_controller.rb b/plugins/status/app/controllers/status_controller.rb
index 56faf55..d9ffc8a 100644
--- a/plugins/status/app/controllers/status_controller.rb
+++ b/plugins/status/app/controllers/status_controller.rb
@@ -50,7 +50,7 @@ class StatusController < ApplicationController
till = Time.new
from = till - 300 #last 5 minutes
- status = @client.find(:dummy_param, :params => { :start => from.strftime("%H:%M,%m/%d/%Y"), :stop => till.strftime("%H:%M,%m/%d/%Y") })
+ status = @client.find(:dummy_param, :params => { :start => from.to_i.to_s, :stop => till.to_i.to_s })
rescue ActiveResource::ClientError => e
flash[:error] = YaST::ServiceResource.error(e)
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org