From: Fabian Fichter Date: Sat, 7 Mar 2020 12:09:24 +0000 (+0100) Subject: Fix time unit of CECP st command X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b6b9fc3eb740f91d86d48095b5d3e30db1d00376;p=fairystockfish.git Fix time unit of CECP st command Set `st` in seconds instead of milliseconds. Closes #85. --- diff --git a/src/xboard.cpp b/src/xboard.cpp index 80bd7df..956211c 100644 --- a/src/xboard.cpp +++ b/src/xboard.cpp @@ -164,9 +164,12 @@ void StateMachine::process_command(Position& pos, std::string token, std::istrin limits.inc[BLACK] = num * 1000; } else if (token == "sd") - is >> limits.depth; + is >> limits.depth; else if (token == "st") - is >> limits.movetime; + { + is >> num; + limits.movetime = num * 1000; + } // Note: time/otim are in centi-, not milliseconds else if (token == "time") {