aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-10-15 19:25:28 +0000
committerNick Mathewson <nickm@torproject.org>2003-10-15 19:25:28 +0000
commitba9b542e935ff9a583b257cf32a9c17bc28bfc65 (patch)
treea78f31ce919557b207dbb6b1b0005e0d2e134df1 /src
parentafd8fa5a977f670894d73a40859a3eaf03c55d4c (diff)
downloadtor-ba9b542e935ff9a583b257cf32a9c17bc28bfc65.tar
tor-ba9b542e935ff9a583b257cf32a9c17bc28bfc65.tar.gz
Report delivery cell fullness correctly
svn:r600
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index c4bd560d9..b00b6df68 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -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))) );