make a new termination category "not started" to differentiate aborted games
This commit is contained in:
parent
7985ce4b97
commit
ed39d5b27f
1 changed files with 5 additions and 1 deletions
|
@ -1252,7 +1252,11 @@ void server::process_data_game(const network::connection sock, const config& dat
|
|||
}
|
||||
|
||||
void server::delete_game(std::vector<game>::iterator game_it) {
|
||||
metrics_.game_terminated(game_it->termination_reason());
|
||||
if (game_it->started()) {
|
||||
metrics_.game_terminated(game_it->termination_reason());
|
||||
} else {
|
||||
metrics_.game_terminated("not started");
|
||||
}
|
||||
// Delete the game from the games_and_users_list_.
|
||||
config* const gamelist = games_and_users_list_.child("gamelist");
|
||||
assert(gamelist != NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue