From: <jh...@us...> - 2009-02-06 17:38:20
|
Revision: 68 http://etch.svn.sourceforge.net/etch/?rev=68&view=rev Author: jheiss Date: 2009-02-06 17:38:17 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Force an update of the client's updated_at field so that clients that are in a stable state don't appear to go stale in our stats. Modified Paths: -------------- trunk/server/app/controllers/results_controller.rb Modified: trunk/server/app/controllers/results_controller.rb =================================================================== --- trunk/server/app/controllers/results_controller.rb 2009-02-06 17:26:36 UTC (rev 67) +++ trunk/server/app/controllers/results_controller.rb 2009-02-06 17:38:17 UTC (rev 68) @@ -122,6 +122,10 @@ end client.status = params[:status] client.message = params[:message] + # This forces an update of updated_at even if status/message haven't + # changed. Otherwise clients will appear to go stale if their state + # remains unchanged. + client.updated_at = Time.now client.save success_count = 0 params[:results].each do |result| This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |