| 395 | } |
| 396 | |
| 397 | void BaseMachine::print_comm(Player& P, const NamedCommStats& comm_stats) |
| 398 | { |
| 399 | size_t rounds = 0; |
| 400 | for (auto& x : comm_stats) |
| 401 | if (x.first.find("transmission") == string::npos) |
| 402 | rounds += x.second.rounds; |
| 403 | cerr << "Data sent = " << comm_stats.sent / 1e6 << " MB in ~" << rounds |
| 404 | << " rounds (party " << P.my_num() << " only"; |
| 405 | if (multithread) |
| 406 | cerr << "; rounds counted double due to multi-threading"; |
| 407 | if (not OnlineOptions::singleton.verbose) |
| 408 | cerr << "; use '-v' for more details"; |
| 409 | cerr << ")" << endl; |
| 410 | |
| 411 | print_global_comm(P, comm_stats); |
| 412 | } |
| 413 | |
| 414 | void BaseMachine::add_one_off(const NamedCommStats& comm) |
| 415 | { |
no test coverage detected