From b6b9fc3eb740f91d86d48095b5d3e30db1d00376 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 7 Mar 2020 13:09:24 +0100 Subject: [PATCH] Fix time unit of CECP st command Set `st` in seconds instead of milliseconds. Closes #85. --- src/xboard.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) 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") { -- 1.7.0.4