Explorar o código

Report delivery cell fullness correctly

svn:r600
Nick Mathewson %!s(int64=20) %!d(string=hai) anos
pai
achega
ba9b542e93
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/main.c

+ 1 - 1
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))) );