diff --git a/dDashboardServer/routes/DashboardRoutes.cpp b/dDashboardServer/routes/DashboardRoutes.cpp index f3a066581..8bac7dc9b 100644 --- a/dDashboardServer/routes/DashboardRoutes.cpp +++ b/dDashboardServer/routes/DashboardRoutes.cpp @@ -240,7 +240,11 @@ namespace { const auto stem = entry.path().stem().string(); const auto written = std::chrono::duration_cast( std::chrono::clock_cast(entry.last_write_time(ec)).time_since_epoch()).count(); - byServer[stem.substr(0, stem.rfind('_'))].push_back({ entry.path(), written, entry.file_size(ec) }); + // _; world servers are WorldServer____ (older files: + // WorldServer___) and are grouped by zone alone; the file names still show the rest + auto server = stem.substr(0, stem.rfind('_')); + if (server.starts_with("WorldServer_")) server = server.substr(0, server.find('_', 12)); + byServer[server].push_back({ entry.path(), written, entry.file_size(ec) }); } for (auto& [server, files] : byServer) std::sort(files.begin(), files.end(), [](const auto& a, const auto& b) { return a.time > b.time; }); return byServer;