Loading changes/hb-fullness 0 → 100644 +3 −0 Original line number Diff line number Diff line o Minor features: - Log packaged cell fullness as part of the heartbeat message. Diagnosis to try to determine the extent of bug 7743. src/or/status.c +6 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ #include "config.h" #include "status.h" #include "nodelist.h" #include "relay.h" #include "router.h" #include "circuitlist.h" #include "main.h" Loading Loading @@ -106,6 +107,11 @@ log_heartbeat(time_t now) "circuits open. I've sent %s and received %s.", uptime, count_circuits(),bw_sent,bw_rcvd); if (stats_n_data_cells_packaged) log(LOG_NOTICE, LD_HEARTBEAT, "Average packaged cell fullness: %2.3f%%", 100*(U64_TO_DBL(stats_n_data_bytes_packaged) / U64_TO_DBL(stats_n_data_cells_packaged*RELAY_PAYLOAD_SIZE)) ); tor_free(uptime); tor_free(bw_sent); tor_free(bw_rcvd); Loading Loading
changes/hb-fullness 0 → 100644 +3 −0 Original line number Diff line number Diff line o Minor features: - Log packaged cell fullness as part of the heartbeat message. Diagnosis to try to determine the extent of bug 7743.
src/or/status.c +6 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ #include "config.h" #include "status.h" #include "nodelist.h" #include "relay.h" #include "router.h" #include "circuitlist.h" #include "main.h" Loading Loading @@ -106,6 +107,11 @@ log_heartbeat(time_t now) "circuits open. I've sent %s and received %s.", uptime, count_circuits(),bw_sent,bw_rcvd); if (stats_n_data_cells_packaged) log(LOG_NOTICE, LD_HEARTBEAT, "Average packaged cell fullness: %2.3f%%", 100*(U64_TO_DBL(stats_n_data_bytes_packaged) / U64_TO_DBL(stats_n_data_cells_packaged*RELAY_PAYLOAD_SIZE)) ); tor_free(uptime); tor_free(bw_sent); tor_free(bw_rcvd); Loading