display the number of games not of game termination types

This commit is contained in:
Gunter Labes 2009-01-04 17:51:19 +00:00
parent fb4a390993
commit 6866d48897

View file

@ -110,9 +110,9 @@ std::ostream& metrics::games(std::ostream& out)
out << "Games have been terminated in the following ways:\n";
for(std::map<std::string,int>::const_iterator i = terminations_.begin(); i != terminations_.end(); ++i) {
out << i->first << ": " << i->second << "\n";
++n;
n += i->second;
}
out << "Total number of finished games = " << n;
out << "Total number of games = " << n;
return out;
}