X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=136c6e80f5bc9ee7f4d86683194fc553e29f8c2d;hb=d84865eac3d7b694b6ad9b6eb95c7a3097b38b3d;hp=35fd725443ae6f55aacff6193cd9bf44f30dde36;hpb=a56322fde813094afd8ffa60d12761f94e0bd3ef;p=stockfish diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 35fd7254..136c6e80 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -74,13 +74,13 @@ void benchmark(int argc, char* argv[]) { Options["Threads"] = threads; if (valType == "time") - limits.maxTime = 1000 * atoi(valStr.c_str()); // maxTime is in ms + limits.movetime = 1000 * atoi(valStr.c_str()); // movetime is in ms else if (valType == "nodes") - limits.maxNodes = atoi(valStr.c_str()); + limits.nodes = atoi(valStr.c_str()); else - limits.maxDepth = atoi(valStr.c_str()); + limits.depth = atoi(valStr.c_str()); if (fenFile != "default") { @@ -112,8 +112,8 @@ void benchmark(int argc, char* argv[]) { if (valType == "perft") { - int64_t cnt = Search::perft(pos, limits.maxDepth * ONE_PLY); - cerr << "\nPerft " << limits.maxDepth << " leaf nodes: " << cnt << endl; + int64_t cnt = Search::perft(pos, limits.depth * ONE_PLY); + cerr << "\nPerft " << limits.depth << " leaf nodes: " << cnt << endl; nodes += cnt; } else