浏览代码

they're uint64 and uint32, not int and int

svn:r2152
Roger Dingledine 21 年之前
父节点
当前提交
967a762fe1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -963,7 +963,7 @@ static void dumpstats(int severity) {
                 (stats_n_data_cells_received*RELAY_PAYLOAD_SIZE)) );
                 (stats_n_data_cells_received*RELAY_PAYLOAD_SIZE)) );
 
 
   if (stats_n_seconds_uptime)
   if (stats_n_seconds_uptime)
-    log(severity,"Average bandwidth used: %d/%d = %d bytes/sec",
+    log(severity,"Average bandwidth used: %llu/%ld = %d bytes/sec",
            stats_n_bytes_read, stats_n_seconds_uptime,
            stats_n_bytes_read, stats_n_seconds_uptime,
            (int) (stats_n_bytes_read/stats_n_seconds_uptime));
            (int) (stats_n_bytes_read/stats_n_seconds_uptime));