std::fprintf(stderr, "Current tournament is %d\n", active_tournament.id);
for (std::vector<SkeletonGroup>::const_iterator i = active_groups.begin(); i != active_groups.end(); ++i) {
- std::fprintf(stderr, "tourn: %u round: %u parallel: %u\n",
- i->tournament, i->round, i->parallel);
+ std::fprintf(stderr, "tourn: %u round: %u parallel: %u num_machines: %u\n",
+ i->tournament, i->round, i->parallel, i->num_machines);
// memory leaks here?
- RotateScreen *rs = new RotateScreen();
- screens.push_back(rs);
- rs->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel));
+ for (unsigned j = 0; j < i->num_machines; ++j) {
+ RotateScreen *rs = new RotateScreen();
+ screens.push_back(rs);
+ rs->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel, j, i->num_machines));
+ }
}
}