X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=2612fb52fa88762474170f182a1ef98846180b04;hp=ea1e92d2aca5ca57ef0c6c2a6942ea2717d65753;hb=0e949ac2c956dc5ac03dc9da7050d895b3fb964a;hpb=e10255339fc7cb54bb0466945f759646f442f4f0 diff --git a/src/timeman.cpp b/src/timeman.cpp index ea1e92d2..2612fb52 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -64,12 +64,9 @@ namespace { int time = int(std::min(1.0, ratio) * std::max(0, myTime - moveOverhead)); if (type == OptimumTime && ponder) - time *= 1.25; + time = 5 * time / 4; - if (type == MaxTime) - time -= 10; // Keep always at least 10 millisecs on the clock - - return std::max(0, time); + return time; } } // namespace