From: H.G. Muller Date: Sat, 22 Oct 2011 16:22:58 +0000 (+0200) Subject: Add 2-sec delay before issuing rmatch X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=commitdiff_plain;h=52d710f4137ace4b1210dbcceedced062cd3c30c Add 2-sec delay before issuing rmatch To prevent server overload when all matches start simutaneously. --- diff --git a/lasker-2.2.3/bots/mamer/Tourney.cc b/lasker-2.2.3/bots/mamer/Tourney.cc index 401ed3e..cfc92b7 100644 --- a/lasker-2.2.3/bots/mamer/Tourney.cc +++ b/lasker-2.2.3/bots/mamer/Tourney.cc @@ -960,6 +960,7 @@ void Tourney::TellThemWhoTheyPlay() { while((g = gameIter.Next())) { /* note that we rely on rmatch and on the ; separated commands from lasker */ + sleep(2); gMamer.XServerCom("rmatch %s %s %i %i %c %s white ; rmatch %s %s %i %i %c %s black\n", g->whiteName, g->blackName, g->time, g->inc, params.mode, Variant, g->blackName, g->whiteName, g->time, g->inc, params.mode, Variant);