From 7d2d3f2082602ad8d1f3c651e46ffbc4949f20ea Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Tue, 9 Mar 2010 23:24:50 +0100 Subject: [PATCH] Distributed engine: log number of replies and threads. Align time. --- distributed/distributed.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/distributed/distributed.c b/distributed/distributed.c index 1284e84..870dad5 100644 --- a/distributed/distributed.c +++ b/distributed/distributed.c @@ -550,12 +550,13 @@ distributed_genmove(struct engine *e, struct board *b, struct time_info *ti, enu double time = time_now() - start + 0.000001; /* avoid divide by zero */ snprintf(buf, sizeof(buf), "GLOBAL WINNER is %s %s with score %1.4f (%d/%d games)\n" - "genmove in %0.2fs (%d games/s, %d games/s/slave, %d games/s/thread)\n", + "genmove in %0.2fs %d slaves %d threads (%d games/s," + " %d games/s/slave, %d games/s/thread)\n", stone2str(color), coord, get_value(dist->my_last_stats.value, color), - dist->my_last_stats.playouts, playouts, time, + dist->my_last_stats.playouts, playouts, time, replies, threads, (int)(playouts/time), (int)(playouts/time/replies), (int)(playouts/time/threads)); - logline(NULL, "*** ", buf); + logline(NULL, "* ", buf); } free(coord); return coord_copy(dist->my_last_move.coord); -- 2.11.4.GIT