add the number of games to the statistics
make the number of lobby players work again (i guess lobby players changed from players to observers at some point..?)
This commit is contained in:
parent
3f98b2f414
commit
6ee4558d1d
2 changed files with 5 additions and 2 deletions
|
@ -104,6 +104,8 @@ public:
|
|||
|
||||
size_t nplayers() const { return players_.size(); }
|
||||
|
||||
size_t nobservers() const { return observers_.size(); }
|
||||
|
||||
const std::string& termination_reason() const {
|
||||
static const std::string aborted = "aborted";
|
||||
return termination_.empty() ? aborted : termination_;
|
||||
|
|
|
@ -251,8 +251,9 @@ void server::dump_stats()
|
|||
|
||||
std::cout <<
|
||||
"Statistics\n"
|
||||
"\tnum_players = " << players_.size() << "\n"
|
||||
"\tlobby_players = " << lobby_players_.nplayers() << "\n"
|
||||
"\tnumber_of_games = " << games_.size() << "\n"
|
||||
"\tnumber_of_players = " << players_.size() << "\n"
|
||||
"\tlobby_players = " << lobby_players_.nobservers() << "\n"
|
||||
"\tstart_interval = " << old_stats << "\n"
|
||||
"\tend_interval = " << last_stats_ << std::endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue