[or-cvs] Report delivery cell fullness correctly

Nick Mathewson nickm at seul.org
Wed Oct 15 19:25:30 UTC 2003


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv12791/or

Modified Files:
	main.c 
Log Message:
Report delivery cell fullness correctly

Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- main.c	15 Oct 2003 18:50:16 -0000	1.133
+++ main.c	15 Oct 2003 19:25:28 -0000	1.134
@@ -727,7 +727,7 @@
     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))) );



More information about the tor-commits mailing list