浏览代码

Report delivery cell fullness correctly

svn:r600
Nick Mathewson 20 年之前
父节点
当前提交
ba9b542e93
共有 1 个文件被更改,包括 1 次插入1 次删除
  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))) );