Replace instance metrics with map lobby counts (Refs #139)
CI / checks (push) Successful in 4m55s

This commit is contained in:
2026-10-10 16:40:07 -04:00
parent 616b1937ed
commit aebfc7a783
10 changed files with 278 additions and 278 deletions
+2
View File
@@ -249,6 +249,7 @@ export function readMetrics(input: MetricsDays | MetricsQuery, now = Date.now())
map = {
game: gameName,
map: label,
running: emptyRunning(),
matches: matchMetrics({
started: 0,
withRecordedPlayers: 0,
@@ -453,6 +454,7 @@ export function readMetrics(input: MetricsDays | MetricsQuery, now = Date.now())
});
}
for (const [map, state] of availability) {
addRunning(map.running, state.lobbies, hours);
if (state.known) {
map.availabilityObserved += hours;
if (!state.empty) {