projects
/
capablanca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
75ea555
)
Add 2-sec delay before issuing rmatch
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 22 Oct 2011 16:22:58 +0000 (18:22 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 22 Oct 2011 16:22:58 +0000 (18:22 +0200)
To prevent server overload when all matches start simutaneously.
lasker-2.2.3/bots/mamer/Tourney.cc
patch
|
blob
|
history
diff --git
a/lasker-2.2.3/bots/mamer/Tourney.cc
b/lasker-2.2.3/bots/mamer/Tourney.cc
index
401ed3e
..
cfc92b7
100644
(file)
--- 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);