1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Change the name to Glaurung clone

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2008-09-21 11:51:38 +02:00
parent e5cc6f6b85
commit 01dd46a309

View file

@ -71,19 +71,19 @@ void dbg_print_hit_rate() {
const std::string engine_name() { const std::string engine_name() {
if (EngineVersion.empty()) if (EngineVersion.empty())
{ {
std::string date(__DATE__); // From compiler, format is "Sep 21 2008" 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"); 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; size_t mon = 1 + months.find(date.substr(0, 3)) / 4;
std::stringstream s; 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); << std::setw(2) << mon << date.substr(4, 2);
return s.str(); return s.str();
} else } else
return "Glaurung " + EngineVersion; return "Glaurung clone " + EngineVersion;
} }