X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=c305e6114e4f080fa85cae7841a79fb0bd20045d;hp=2092b7299ed1c3b78ac9b53178bf5e61e7672d8d;hb=2312c2672299d6e13b2f509bf5b1a6e330662f09;hpb=17cb7e7fa3cbc707be1df6793de1928fcb0c6219 diff --git a/src/timeman.cpp b/src/timeman.cpp index 2092b729..c305e611 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -63,7 +63,7 @@ namespace { double ratio1 = (TMaxRatio * thisMoveImportance) / (TMaxRatio * thisMoveImportance + otherMovesImportance); double ratio2 = (thisMoveImportance + TStealRatio * otherMovesImportance) / (thisMoveImportance + otherMovesImportance); - return int(floor(myTime * std::min(ratio1, ratio2))); + return int(myTime * std::min(ratio1, ratio2)); } } // namespace