diff --git a/Sources/App/Management/TableManagement.swift b/Sources/App/Management/TableManagement.swift index 3943c88..3202c22 100644 --- a/Sources/App/Management/TableManagement.swift +++ b/Sources/App/Management/TableManagement.swift @@ -23,8 +23,6 @@ final class TableManagement { /// The metric describing the number of players currently connected via a websocket private let connectedPlayerCountMetric: Metric - - /** Load the tables from a file in the storage folder - Throws: Errors when the file could not be read @@ -64,10 +62,12 @@ final class TableManagement { private func logPlayingPlayerCount() { let count = tables.values.sum { $0.playerCount } + playingPlayerCountMetric.update(count) } private func logConnectedPlayerCount() { let count = tables.values.sum { $0.numberOfConnectedPlayers } + connectedPlayerCountMetric.update(count) } /**