]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Report delivery cell fullness correctly
authorNick Mathewson <nickm@torproject.org>
Wed, 15 Oct 2003 19:25:28 +0000 (19:25 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 15 Oct 2003 19:25:28 +0000 (19:25 +0000)
svn:r600

src/or/main.c

index c4bd560d995b85b5681e7422cc1e3ede5ac8e7d6..b00b6df6846aa82f1164e5af2fd3dcdd8f636f2e 100644 (file)
@@ -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))) );