- Options["Hash"].set_value(ttSize);
- Options["Threads"].set_value(threads);
- Options["OwnBook"].set_value("false");
+ Options["Hash"] = ttSize;
+ Options["Threads"] = threads;
+ Options["OwnBook"] = false;
+
+ if (valType == "time")
+ limits.maxTime = 1000 * atoi(valStr.c_str()); // maxTime is in ms
+
+ else if (valType == "nodes")
+ limits.maxNodes = atoi(valStr.c_str());