From 52d710f4137ace4b1210dbcceedced062cd3c30c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 22 Oct 2011 18:22:58 +0200 Subject: [PATCH] Add 2-sec delay before issuing rmatch To prevent server overload when all matches start simutaneously. --- lasker-2.2.3/bots/mamer/Tourney.cc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); -- 1.7.0.4