From pantulis at gmail.com Mon Aug 7 14:16:23 2006 From: pantulis at gmail.com (=?UTF-8?Q?Juan_Lupi=C3=B3n?=) Date: Mon, 7 Aug 2006 20:16:23 +0200 Subject: [Dconrails-devel] Basic halt condition detection at server Message-ID: Now we have two halting conditions detected at the server code. 1.- when number of guys generated raches certain value (algoritmo.max_guys() 2.- when any guys received from the client has a fitness beyond certain threshold (algoritmo.target_fitness) When any of these conditions are met, the server refuses to process any more request from any client and redirects it to a stopgap page displaying some -hopelly useful- statistics, and that's it. What should be done: gather those statistics and setup a history table. Now the algorithm has three possible states: "BEGIN" (freshly created) "RUNNING" and "FINISHED" (one of the stop criteria has been reached) The code is ugly as an orc, by the way. -- ---------------------------------------------------- http://hronia.blogalia.com