Resent time stats

This commit is contained in:
KimLS
2019-04-06 15:49:44 -07:00
parent 82e247f77b
commit 7fb1d2a1b5
4 changed files with 18 additions and 0 deletions
+1
View File
@@ -9522,6 +9522,7 @@ void command_netstats(Client *c, const Seperator *sep)
c->Message(0, "Resent Packets: %u (%.2f/sec)", stats.resent_packets, stats.resent_packets / sec_since_stats_reset);
c->Message(0, "Resent Fragments: %u (%.2f/sec)", stats.resent_fragments, stats.resent_fragments / sec_since_stats_reset);
c->Message(0, "Resent Non-Fragments: %u (%.2f/sec)", stats.resent_full, stats.resent_full / sec_since_stats_reset);
c->Message(0, "Resent Times: %ums (min) %ums (max) %ums (avg)", stats.resent_time_min, stats.resent_time_max, stats.resent_time_average);
c->Message(0, "Dropped Datarate Packets: %u (%.2f/sec)", stats.dropped_datarate_packets, stats.dropped_datarate_packets / sec_since_stats_reset);
if (opts.daybreak_options.outgoing_data_rate > 0.0) {
+3
View File
@@ -689,6 +689,9 @@ void callGetPacketStatistics(Json::Value &response)
row["resent_packets"] = stats.resent_packets;
row["resent_fragments"] = stats.resent_fragments;
row["resent_non_fragments"] = stats.resent_full;
row["resent_time_min"] = stats.resent_time_min;
row["resent_time_max"] = stats.resent_time_max;
row["resent_time_average"] = stats.resent_time_average;
row["dropped_datarate_packets"] = stats.dropped_datarate_packets;
Json::Value sent_packet_types;