X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=bdcaee84c5f4ce10bc75198993ed6c6d315d0d30;hp=8d2bacca3c10c4d20e73c8f59ddaaf0be85fe12c;hb=49e110c52b19f5c99954d4797b8e991b0b60007c;hpb=3698d9aa5573ca666c238b7d31a48b2aeede43dd diff --git a/src/timeman.cpp b/src/timeman.cpp index 8d2bacca..bdcaee84 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -76,10 +76,9 @@ namespace { } -void TimeManager::pv_instability(int curChanges, int prevChanges) { +void TimeManager::pv_instability(float bestMoveChanges) { - unstablePVExtraTime = curChanges * (optimumSearchTime / 2) - + prevChanges * (optimumSearchTime / 3); + unstablePVExtraTime = int(bestMoveChanges * optimumSearchTime); }