From: H.G. Muller Date: Sun, 12 Feb 2012 21:53:35 +0000 (+0100) Subject: Always pass info string with timing info X-Git-Tag: v2.0~45 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=19fd1d671bb688d926f1f1c6b7ab4abc304b6db1;p=uci2wb.git Always pass info string with timing info Even with nopost a sting starting with "info string times @" will be passed to the GUI as debug output. --- diff --git a/UCI2WB.c b/UCI2WB.c index 53b2f19..a0abcfe 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -178,6 +178,7 @@ Engine2GUI() else if(!strcmp(command, "info")) { int d=0, s=0, t=0, n=0; char *pv; + if(sscanf(line+5, "string times @ %c", &dummy) == 1) { printf("# %s", line+12); continue; } if(!post) continue; if(sscanf(line+5, "string %c", &dummy) == 1) printf("%d 0 0 0 %s", lastDepth, line+12); else { if(p = strstr(line+4, " depth ")) sscanf(p+7, "%d", &d), statDepth = d;