X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=stats.cpp;h=c9af688327be6d1e2a8745e05b68a68f598baa16;hb=a0949bd6af9a604e7073354fc530353bbdb7871c;hp=49106eed04fbcf7fffc0e2a8f5c8b6de79e1c081;hpb=807a8ae8f6aca56e3e809aa19f4034a323f1b987;p=cubemap diff --git a/stats.cpp b/stats.cpp index 49106ee..c9af688 100644 --- a/stats.cpp +++ b/stats.cpp @@ -50,11 +50,13 @@ void StatsThread::do_work() 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");