X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=237ca8d7d8d9525c7a7dc301f44a2695015352ac;hp=6ee65bf61d9a95fd5b012f86e9b0df542f33ed48;hb=01dd46a309435a3783d8e4ae99520badac885c79;hpb=e5cc6f6b853c65d48d78d99b039d58750cebfc50 diff --git a/src/misc.cpp b/src/misc.cpp index 6ee65bf6..237ca8d7 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -71,19 +71,19 @@ void dbg_print_hit_rate() { const std::string engine_name() { if (EngineVersion.empty()) - { + { std::string date(__DATE__); // From compiler, format is "Sep 21 2008" std::string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"); size_t mon = 1 + months.find(date.substr(0, 3)) / 4; std::stringstream s; - s << "Glaurung " << date.substr(date.length() - 2) << std::setfill('0') + s << "Glaurung clone " << date.substr(date.length() - 2) << std::setfill('0') << std::setw(2) << mon << date.substr(4, 2); return s.str(); } else - return "Glaurung " + EngineVersion; + return "Glaurung clone " + EngineVersion; }