|
|
|
|
@ -224,6 +224,13 @@ static void statistics(struct lab *lab, uint64_t id, int loads) {
|
|
|
|
|
if (connection && connection->links_up && !connection->close_requested && connection->state != 2) |
|
|
|
|
printf("%s\"%" PRIu64 "\"", separator++ ? "," : "", connection->peer_node_id); |
|
|
|
|
} |
|
|
|
|
printf("],\"group_ready\":["); separator = 0; |
|
|
|
|
struct TOPO_GROUP *nat_group = topo_groups_find(lab->inst->topo_groups, TOPO_GROUP_UTUN); |
|
|
|
|
for (struct ll_entry *entry = nat_group ? nat_group->nodes->head : NULL; entry; entry = entry->next) { |
|
|
|
|
uint64_t peer = ((struct TOPO_GROUP_NODE *)entry)->node_id; |
|
|
|
|
if (peer != lab->inst->node_id && topo_group_peer_ready(nat_group, peer)) |
|
|
|
|
printf("%s\"%" PRIu64 "\"", separator++ ? "," : "", peer); |
|
|
|
|
} |
|
|
|
|
printf("],\"streams\":["); separator = 0; |
|
|
|
|
for (unsigned i = 0; i < LAB_STREAMS; i++) { |
|
|
|
|
struct lab_stream *stream = &lab->streams[i]; |
|
|
|
|
|