now = time(NULL);
client_stats = servers->get_client_stats();
for (size_t i = 0; i < client_stats.size(); ++i) {
- fprintf(fp, "%s %s %d %llu\n",
+ fprintf(fp, "%s %s %d %llu %llu %llu\n",
client_stats[i].remote_addr.c_str(),
client_stats[i].stream_id.c_str(),
int(now - client_stats[i].connect_time),
- (long long unsigned)(client_stats[i].bytes_sent));
+ (long long unsigned)(client_stats[i].bytes_sent),
+ (long long unsigned)(client_stats[i].bytes_lost),
+ (long long unsigned)(client_stats[i].num_loss_events));
}
if (fclose(fp) == EOF) {
perror("fclose");