Use 2 * bestMoveChanges.
[stockfish] / src / search.cpp
index 07c491b69f487faae35f5aa07469c864a3263ebb..c7d2efd40da46bb6189e834fea0bee051ae2f182 100644 (file)
@@ -520,7 +520,7 @@ void Thread::search() {
               totBestMoveChanges += th->bestMoveChanges;
               th->bestMoveChanges = 0;
           }
-          double bestMoveInstability = 1 + totBestMoveChanges / Threads.size();
+          double bestMoveInstability = 1 + 2 * totBestMoveChanges / Threads.size();
 
           double totalTime = rootMoves.size() == 1 ? 0 :
                              Time.optimum() * fallingEval * reduction * bestMoveInstability;