Replace instance metrics with map lobby counts (Refs #139)
CI / checks (push) Successful in 4m55s
CI / checks (push) Successful in 4m55s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user