mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Report delivery cell fullness correctly
svn:r600
This commit is contained in:
+1
-1
@@ -727,7 +727,7 @@ static void dumpstats(int severity) {
|
||||
log(severity,"Average outgoing cell fullness: %2.3f%%",
|
||||
100*(((double)stats_n_data_bytes_packaged) /
|
||||
(stats_n_data_cells_packaged*(CELL_PAYLOAD_SIZE-RELAY_HEADER_SIZE))) );
|
||||
if (stats_n_data_cells_packaged)
|
||||
if (stats_n_data_cells_received)
|
||||
log(severity,"Average incoming cell fullness: %2.3f%%",
|
||||
100*(((double)stats_n_data_bytes_received) /
|
||||
(stats_n_data_cells_received*(CELL_PAYLOAD_SIZE-RELAY_HEADER_SIZE))) );
|
||||
|
||||
Reference in New Issue
Block a user